help-typescript

11339 threads · Page 200 of 227

Transform type properties 111 messages
Resolved
how can I reference the current class type from a static method ? 35 messages
Resolved
Dynamic typing with generics 3 messages
Open Node
Variable with class is not a class? 33 messages
Resolved
Figuring out Type for Reselect/Selector call 2 messages
Open React Tooling
Need help with global css in react project 12 messages
Resolved React
Number range in types longer than 1000 numbers 9 messages
Resolved
Extend global interface -> union? 6 messages
Open Node
It says 'string' type is not assignable to 'T[keyof T]' type, how can I solve it? 56 messages
Resolved
I don't understand how to make a "pick". 22 messages
Resolved
Satisfies to ensure exact type 5 messages
Open
Property 'replaceAll' does not exist on type 'string'. 15 messages
Open
How to recursively infer object values in an array? 25 messages
Resolved
Classes are closed to TS? 20 messages
Resolved
how to solve error - A spread argument must either have a tuple type or be passed to a rest para 9 messages
Open React
An array `remove` function 5 messages
Open
How to avoid using `as string[]` to return the value of a key in common between 2 objects 26 messages
Open
Typescript snippet review (30 lines) Managing types while parsing some strings 4 messages
Open
Function return type is `never` and I don't understand why 34 messages
Resolved React
Is wrapping identity function the only way to infer real object type? 13 messages
Resolved
Weird and confusing variance issue 11 messages
Open
Infer argument type in function declaration based on how it’s used 4 messages
Resolved
weird types when using custom hook 23 messages
Resolved React
How to check if a variable string is a valid member of the object? 26 messages
Resolved
How to correctly omit HTMLInput onChange type 4 messages
Open React
Infer string literal object keys 13 messages
Open
npx CLI set up 5 messages
Resolved
Union of numbers between range 6 messages
Open
Dynamic interface based on types and values of object 24 messages
Resolved
How do I destructure a tuple of string literals without loosing type information 37 messages
Open
still confused over typing the includes method 35 messages
Resolved
React - How to hoist variable that holds JSX? 3 messages
Open
How to reference the 'correct' button in an array of buttons and change only its color? 13 messages
Open React Node
Subset type resolution for a function argument 3 messages
Open
Duplicate identifier 6 messages
Open React
Filtering null items from an array 43 messages
Resolved
Recursively mapped types 4 messages
Resolved
Map array value types 6 messages
Open
Subset keys type 6 messages
Resolved
`Number` or `number`, which is better type for `this` parameter for `Number.prototype.valueOf()`? 13 messages
Open
Typing object with multiple time the same structure : {id1: {name: ""}, id2: {name: ""}} 25 messages
Open
Pick all partial properties from object 15 messages
Open
Create array from union type 32 messages
Open
Infer function return type / Create a type that only specifies a functions arguments? 14 messages
Resolved
How to create chaining function listener? 24 messages
Resolved
Interface for object referring to values of one property in another 32 messages
Resolved
Enforcing the return type of an abstract class methods 63 messages
Resolved
Default type for Record<string, any>? 68 messages
Open
Issue with class generics and seemingly unwanted type narrowing 23 messages
Open
Typing a `get(key, default?)` 11 messages
Open