help-typescript

11339 threads · Page 182 of 227

Some kind of infinite loop crash when converting element to string 9 messages
Open React
Accessing private/protected member internally in a type safe manner 2 messages
Resolved
Is there a way to assert a type like a type guard, but without the if? 3 messages
Open
Specify one generic type argument, infer the other 2 messages
Open
boolean issu ! Type 'boolean' is not assignable to type 'true' 39 messages
Resolved Tooling Node
Make setter accept undefined 12 messages
Open
Dynamic typing loop through array of object 19 messages
Open
Import JSON file as readonly const? 3 messages
Open
Having trouble with HTMLInputSelect 9 messages
Resolved React
Having some trouble with decorators 5 messages
Open Node
How do I publish type extensions of third party modules? 20 messages
Open
Guessing generics with property checks 16 messages
Resolved
Adding type to req.body with express-jwt Request type 22 messages
Resolved Node
Guaranteed Async Class Properties 10 messages
Resolved Tooling
@database 5 messages
Open Node
Testing with Mocha 3 messages
Open Node
Function return type based on property values from input 13 messages
Open
Automatically infer interface's generic property from constructed object 6 messages
Open
TS 5 Class Decorators not working properly? 5 messages
Open
intersection with Record not working 4 messages
Open
How can this advanced function type be achieved? Impossible? 14 messages
Open
Why data variable is "any"? 7 messages
Resolved Tooling
Inferring string array type based on another property value 15 messages
Open
Export namespace under classmodule 6 messages
Resolved
RTK query mutation error response type define 23 messages
Resolved
RTK query mutation error response type define 5 messages
Resolved React
tuple to optional 27 messages
Resolved
Hi can you help me can’t resolve fs 3 messages
Open
Hi can you help me can’t resolve fs 4 messages
Resolved
. 9 messages
Open
Prettier doesn't format on save 14 messages
Open React
Check for undefined value in array in a guard clause & tell TS a value of the array cannot be undef 7 messages
Resolved Node
Generic function is not working as expected 26 messages
Open Tooling Node
enum to Json 59 messages
Open Node
Is there a way to extract a type from some function or class exported by a package? 18 messages
Open Node
Using the return of a higher order function, can I infer a type from the closure? 8 messages
Open
Tuples and Arrays (and readonly) 64 messages
Resolved
add ".js" to file imports 17 messages
Open
Scroll to a particular item within an iframe 2 messages
Resolved
"in" operator to safely access object property 30 messages
Resolved
Given a bag of { name => example } records , how do type the "flattened" bag of name => example? 17 messages
Open
Make a property optional while avoiding circular reference 10 messages
Open Node
Function arg accept a narrowed type 9 messages
Resolved
Create type or interface from Object optional values? 3 messages
Resolved
Generic not picked up by TypeScript in a particular case 15 messages
Open
Typing system, number variables, and discrete ranges - runtime checks needed? 25 messages
Resolved
Trying to make an NPM library, but methods and classes are all undefined. 49 messages
Resolved
need tsconfig incantation to tell it to `import('blah')` using async import rather than require() 3 messages
How to prevent types structural compatability ? 5 messages
React
Using generics with decorators to define method parameter types? 11 messages
Resolved Node