help-typescript

11339 threads · Page 131 of 227

A property should only be available when a certain value is set for another property 45 messages
Resolved
Setting moduleResolution = nodeNext breaks some class imports/ctors 19 messages
Resolved Node
React component with predicate 6 messages
Open React
Is there a way to write a HOC w/o double `as`? 11 messages
Open React
No error - why? 20 messages
Open
Use return type of mixin func rather than retyping return type 5 messages
Open
Omit cannot be used as index type 14 messages
Open
Make a type accept a property with a wider string union? 8 messages
Open
typescript mixins 14 messages
Open
no exported member trying to use types from kdljs npm package in node 7 messages
Open Node
How to make some keys optional in Record depending on their value? 7 messages
Open Tooling
I want to know what type should i use for dispatch when using redux thunk middleware. 8 messages
Resolved React
Error during build 15 messages
Open React
Typescript bug? How do i make this generic throw an error? 79 messages
Resolved Node
types not working after installing x dependencies 7 messages
Open
I'm facing this weird error in Angular , is this related to tsConfig.json 14 messages
Resolved
: expected tserror 11 messages
Open
remove Record<> intersection 19 messages
Resolved
Questions on Abstract Classes, with Abstract Methods, with extended parameters. 17 messages
Open
Improve type export performance 19 messages
Open Tooling
Typescript never[] param 5 messages
Open
How can I infer a type from a dynamic readonly array? 6 messages
Resolved
Extending JQuery Event 20 messages
Open
What is the correct type to use in this scenario? 13 messages
Resolved
I don't understand why this produces an error. 33 messages
Open
How to type for an unknown object 9 messages
Resolved
Help with "complex?" generics (rust placeholder type like) 8 messages
Resolved
Local typescript package in a monorepo 10 messages
Open Tooling Node
Anyway to declare a type on an inline array? 5 messages
Open
Is there an official tsconfig TypeScript type declaration? 10 messages
Open
how to implement <T> interfaces? 23 messages
Open React
Generic function's generic type has unexpected behaviour 33 messages
Resolved Node
TS does not recognize " | null " types 13 messages
Resolved
How do I make the TS engine think it's inside a different file? 41 messages
Open Tooling
module vs target vs lib in tsconfig 55 messages
Open Tooling
React function with formData props 2 messages
Open React
Typing help? 34 messages
Resolved React
Hi folks, i've a problem with generics/arrow-function overloads 7 messages
Open
How to declare interface with static method? 10 messages
Open
Object key types depending on another object's values? 22 messages
Open Node
How to get correct types when a generic is used? 2 messages
Open
Understanding interfaces with useState hooks 7 messages
Resolved React
What if A is an interface in import type { A } from 'B' ? 5 messages
Resolved
Optional Chaining stops working if optional arg has optional props. 6 messages
Open
How to narrow the return type of a function based on a parameter instead of getting a union back? 6 messages
Open
Global installed modules not found with Typescript in VScode 60 messages
Open
TS1064 on custom Promise return type 14 messages
Open
Generic Function and Parameter Union 7 messages
Resolved Node
https://www.typescriptlang.org/play?ts=5.2.2#code/C4TwDgpgBAgg8gJwEJQLxQN4EMBcUDKwCAlgHYDmANFAEZ4Cup 3 messages
Open
Type a variable based on another variable 8 messages
Open