help-typescript

11339 threads · Page 168 of 227

How do I best avoid this return type error within a loop? 17 messages
Open Node
Is this function optimized for Empty Array verification? 9 messages
Open
Do declaration merged interfaces behave differently from intersected (&) interfaces? 12 messages
Resolved
react-native & fontawesome 4 messages
Open
Make one type of first argument nullable, if boolean true is sent to second argument of a function. 4 messages
Open
Is it possible to restrict an enum's value type? 3 messages
Open
Help with typing a generic function with generic parameter 12 messages
Resolved Node
is there a way to make this mapped type better? 5 messages
Open
weird problem with spread operator behavior? 23 messages
Resolved
How can I change the order for the auto-import functionality? 4 messages
Open Tooling Node
Trying to narrow value based on checking functions 10 messages
Resolved
Error makes no sense? 8 messages
Resolved
Type for function with specified parameters but unspecified return type 13 messages
Resolved
How to omit the second generic parameter definition? 4 messages
Open
How to define type for function with collapsing optional parameters 29 messages
Resolved
Return type inference from Optional Generic param 6 messages
Resolved
Type that changes type of values based on key? 17 messages
Open
how to set type function and parameter 13 messages
Open
Is it possible to map enum to function return type 4 messages
Resolved Node
Variadic tuple-like function arguments 8 messages
Resolved
Why this is undefined? 40 messages
Open
Need some help understanding how strictFunctionTypes applies in this scenario 2 messages
Open
discord bot 21 messages
Resolved
Key in Enum? 18 messages
Open
Is it possible to pick fields matching a type from an interface? 2 messages
Resolved
Match/filter strings from string literal union that match criteria 8 messages
Resolved
map undefined to null 34 messages
Open
How can I make return type be inferred from generic type? 3 messages
Open
Class inside a class. Accessing value from a parent class 9 messages
Resolved
Discriminating against a union that was boxed in a generic 14 messages
Open
How can I make a type from an union of objects ? 13 messages
Open
This Does not seem to be like a Function call signature 2 messages
Open
"no overload matches this call" using a Set 4 messages
Open
OpenAPI generated enums with <any> 2 messages
Open Node
Import d.ts in JSDoc with same name possible? 5 messages
Open Tooling
Extending the interface without creating a new one 2 messages
Open Node
Getting assertion type error even if I added it 5 messages
Open Node
how to map from one type to another 4 messages
Open
const data = await res.json() ! Unsafe assignment of `any` value 23 messages
Open
Provide type from dependency globally 3 messages
Resolved Tooling
Help me improve my function for converting json to text/csv 4 messages
Open React
Force rerendering of the html in react 72 messages
Resolved React
tsc output tree 65 messages
Open
Discriminated unions in arrays have ambiguous member types 6 messages
Resolved
How to state an interface extends another based on a value? 8 messages
Open React
Type alias, that "matches" different types, of the same shape 18 messages
Resolved
Does someone know a way to disable tsc? 4 messages
Open Tooling Node
Type narrowing doesn't work with a generic with union argument, how can I fix it? 15 messages
Open
Can someone help me understand this generic result? 20 messages
Resolved
How can I have the return type inferred based on the key and use const? 47 messages
Resolved