help-typescript

11339 threads · Page 128 of 227

Proper way to do subcomponents? 10 messages
Open React
Is there any clever way to DRY up these generic definitions? 3 messages
Open
Legacy code uses `eval(code)` and `code` uses externally defined global variables. How to refactor? 9 messages
Resolved
Spread generic in array 16 messages
Resolved
Creating type with Generic keys where each key points to a different value type 2 messages
Open Node
Import types from file with different `lib`s and `types` 19 messages
Open
How do conditional types work? 86 messages
Open Node
Custom Component with forwardRef 2 messages
Open
TypeScript inference question 18 messages
Open
how can I do Object.keys as const 5 messages
Open
TS error from within a file that isn't rendering (and isn't supposed to be) 15 messages
Resolved React
Union type for dynamic import 5 messages
Resolved
Paths not working, TS 5.2.2 10 messages
Resolved Node
Why is my `export let x` readonly? 64 messages
Open
Construct object type from union type 4 messages
Resolved
Infer return type based on parameter type 25 messages
Resolved
Provide type safety for recursively generated object 2 messages
Open
Easy: Array destructure with array push(), type mismatch 6 messages
Open
Why isn't this global declaration file merging with other types? 2 messages
Open
Typing problem 26 messages
Open Tooling
Using absolute imports in tsconfig.json 8 messages
Open Node
Assertions require every name in the call target to be declared with an explicit type annotation. 6 messages
Resolved
How do I validate that a function returns a type that satisfies a certain type? 22 messages
Resolved
Recursive type produces "Expression produces a union type that is too complex to represent" 5 messages
Open
Project 'tsconfig.json' is out of date because output file 'src/index.js' does not exist 2 messages
Open
Design pattern for indicating ongoing process. 18 messages
Open
Typecheck that an array is containing every field of a type 14 messages
Resolved
could anyone help me understand this error? 31 messages
Open
TS modules are not being recognized - Unable to resolve path 11 messages
Resolved React
= this; 15 messages
Open
ts-node, node and esm troubles 55 messages
Resolved Tooling Node
Use absolute imports instead of relative imports 6 messages
Open Node
Generic types in static 78 messages
Open
error TS2698: Spread types may only be created from object types 45 messages
Open
Narrowed class constructor not propagated to parent 8 messages
Resolved
Compose a type out of multiple Records 8 messages
Open
Generic select component, how to force checking generic type 2 messages
Open React
How can I see computed type? 4 messages
Open
Type problem with destructured defaults but getting "string | undefined" errors. 4 messages
Open
how can I solve Spread types may only be created from object types??? 17 messages
Open
template arguments for a fixed-length array type 12 messages
Resolved
Narrowing type based on object property 35 messages
Open
How can I solve this problem??? 7 messages
Resolved
How to check if something is a class that extends a specific class 36 messages
Resolved Node
Setting type based on array values 8 messages
Open Node
Is something like this possible? (Calling exported function in the same export) 9 messages
Open Node
typescript infering right return type 176 messages
Resolved
What's up with this children error? 14 messages
Resolved
Operating on tuples - how to preserve member types? 8 messages
Open
Different libraries for different entrypoints 9 messages
Open