help-typescript

11339 threads · Page 87 of 227

How to use type guard for null checks using a custom function 93 messages
Resolved React
In ts, if a property of an object does not exist, how would I make it use the next value? 3 messages
Open Node
allowImportingTsExtensions: true; 9 messages
Open
Return type of function being incorrectly inferred across files 48 messages
React
Infer possible property values in a generic type guard function. 24 messages
Open
How does this work? 15 messages
Open
I have no idea how to fix this 124 messages
Open Tooling Node
why this doesn't work? 18 messages
Open Deno Node
Can't implement conditional return type? 3 messages
Open
How to test this function using Jest 4 messages
Node
properly type a parameter of function, which should be keys of the object it receiving 3 messages
Resolved
Incompatible Overload Signature 10 messages
Resolved
Trying to get Metaballs JS to work but it says it's typescript 8 messages
Open
How to create a type union based on a function return value 3 messages
Open Node
How can i enforce an exact type for a class? 2 messages
Open
Get nested object as string path 22 messages
Open
Error [ERR_REQUIRE_ESM]: require() of ES Module 4 messages
Open Node
How can `getOwnPropertyDescriptor(window, 'HTMLElement')` exist when `getOwnPropertyNames` does not? 5 messages
Open Node
Correctly documenting enumerated types? 2 messages
Resolved
Stuck On Generic Typed Columns problem 2 messages
Open
Is there any way I don't have to use "unknown"? 14 messages
Open Node
How do I run a piece of code once at startup? 25 messages
Resolved Node
debugging ts SAM based lambda functions in vscode 11 messages
Open
Record<string, unknown> accepts a an object type alias, but not an interface 8 messages
Resolved
Help with type augmentation 19 messages
Open Node
Am I able to use the result of an indexxed array type in another type? 26 messages
Resolved
jsxImportSource and NodeNext 60 messages
Open Node
Function with return type depending on argument with default value 9 messages
Resolved
how do i define global const variable 24 messages
Resolved React Node
How to type a Record of button variants (primary, secondary, etc.) without repeating variant names 5 messages
Open
class decorator allows undefined method call? 4 messages
Open
Conditionnal cast/type, how to ? 21 messages
Open
switch statement - variable assigned but never read 7 messages
Resolved React Node
Auto infer function arguments based on the first arg 8 messages
Resolved Node
Why is automatically wrapping this property suddenly making it invalid? 14 messages
Open
Bumping into trouble with ESLint readonly parameters. 8 messages
Open
Very confused about typescript classes 8 messages
Open
StringUtils 6 messages
Open
Branding with type predicates in intersections ? 29 messages
Resolved
Create a pattern with a type list 3 messages
Resolved
Constrain record keys to record types? 4 messages
Resolved Node
make two properties required if one of them exist 17 messages
Open
generic that extends boolean with default value 34 messages
Open
Where to get the types for an experimental JS constructor? 5 messages
Resolved React
When to use structured types vs interfaces? 24 messages
Resolved
Conditional type troubles 34 messages
Open
Two condition statements grouped TypeScript reads it as the "same"? 5 messages
Resolved React
Get array of const from enum 8 messages
Open
Forcing a type to be treated as a tuple 24 messages
Open
TS not strict with function signature? 30 messages
Resolved