help-typescript

11339 threads · Page 107 of 227

Argument of type '() => Promise<void>' is not assignable to parameter of type 'TransitionFunction'. 11 messages
Open React
TypeError: Cannot read properties of null (reading '0') 24 messages
Resolved
string.match add flags to string argument 2 messages
Resolved
How can I make this type correct? 2 messages
Open
Typing callback arguments 5 messages
Resolved
keyof Interface being collapsed to never 3 messages
Open
Simplest way to type anonymous callback function when it can't be inferred 15 messages
Resolved
Infer type from argument for use in other argument to avoid type parameter? 4 messages
Resolved
Is there any hope for me? 29 messages
Open
Struggling with ComponentType generic 5 messages
Resolved React
Utility Type to join tuple of strings by separator 10 messages
Open
TS narrowing for array filter 4 messages
Open
... is assignable to the constraint of type 'T', but 'T' could be instantiated ... 30 messages
Resolved
Generic of Generic Parameter? 3 messages
Open
Loosing generic type information when using a type guard 7 messages
Open
Creating account 8 messages
Resolved
How to get TypeScript to display error missing object in an array in statical type checking? 16 messages
Open
Strange behavior with generic types on class method 5 messages
Open
How to redefine next-auth Session type? 3 messages
Open React
Prevent union distribution on variable inference 11 messages
Open
make arguments type better 41 messages
Open
HTMLInputElement#form wrongly typed? 34 messages
Open
Classes and Prototypes... 31 messages
Open React
ts-node-dev not working 8 messages
Open Tooling Node
Naming suggestions for a class which ensures different types aren't assignable to it 143 messages
Resolved
beginner question 3 messages
Resolved
Conditional type needs shortening 32 messages
Resolved
Verbatim Module Syntax partially not working ? 25 messages
Open
Why is the the curly braces need? 10 messages
Open
Why am I getting an error on the return type ? 2 messages
React
scope and assertions in forEach() vs for..of 11 messages
Resolved
limit scope of external module type augmentation 3 messages
Open
reverse key value type 14 messages
Open
How to use declarations of a globally loaded module ? 5 messages
Open
How can I create a type from pairings in an array of objects? 11 messages
Resolved
How can I create a model for this JSON content? 24 messages
Resolved
Generic cast function 71 messages
Resolved
Override lim.dom.d.ts CustomEvent interface 12 messages
Resolved
How to compile TS ES6 modules to JS with ES6 modules? 18 messages
Open
`type Class<T> = typeof T;` 14 messages
Open
Extension promotion 2 messages
Resolved
How can I fix type inference (zod)? 7 messages
Resolved
Self Signed Certificate Error 7 messages
Open Tooling
How do I dynamically add methods to a object while retaining types? 13 messages
Open Node
How to create a plugin system and decaroaters 11 messages
Open Node
How would I make middleware for a function? 2 messages
Open
Is there a better way of writing this? 27 messages
Resolved
Passing generic to a nested function type 11 messages
Open
Generic inference through 'wrong' argument 22 messages
Open
Reason why classes having the same name than their wrongly implemented interface doesn't throw error 10 messages
Open