help-typescript

11339 threads · Page 136 of 227

ComponentProps doesn't allow all component props 8 messages
Open
How to type <Link> component in react-router-dom when "to" prop is a number 3 messages
Open React
Automatic type narrowing 7 messages
Resolved
How to extend an array prototype (or use a custom array type instead) 26 messages
Open
How to write when the number of generics is dynamic? 7 messages
Resolved React
How to write an iterator function? 22 messages
Resolved
Is there a compiler that requires strict typing on "let" properties? 40 messages
Resolved
Achieving Conditional Type Determination at Runtime based on Object Property 11 messages
Open
Handling errors with a function that either returns a number or an error message 20 messages
Open
Typescript Type inference 41 messages
Open Node
Why does TypeScript not show an error when I try to check for null on a type that cannot be null? 5 messages
Open
Using absolute imports in tsconfig.json 5 messages
Resolved Node
`ERR_REQUIRE_ESM` when importing chalk 74 messages
Open Node
How to properly define `as const` 2 messages
Open
Doubt regarding order of parameters even if type is defined in typescript 11 messages
Open
Object is possibly "undefined" 69 messages
Open
Help understanding why a function doesn't satisfy my interface 31 messages
Open
How do I get rid of the annoying Object is possible 'undefined' message? 20 messages
Resolved
How to autocomplete for dynamic string literal 3 messages
Resolved
. 25 messages
Open
Limitations of using discriminatory unions with boolean literals 3 messages
Open React
tsc on cPanel not working 9 messages
Open Node
Adding a click event listener from inside a class method 7 messages
Open Node
How to prevent keys with the same name from becoming union types when different objects intersect, a 6 messages
Open
Well typed object generated by factory with dynamic keys 2 messages
Open
alternative to "this" in typescript? 🥺 3 messages
Open React
How do I Partial<> an object's nested properties recursively? 9 messages
Resolved
Are you allowed to `include` .d.ts files in tsconfig? 2 messages
Open
Basic func-declaration question, re "default" and params 30 messages
Open
Newbie: typing a function 7 messages
Open
Next.js not executing any custom code, only markup works 4 messages
Open React Node
Creating tuple types from constants 8 messages
Open
This expression is not constructable. 5 messages
Open
array of generic types, extract generic to union 16 messages
Resolved
Typescript recursive type problem (JsonObject) 26 messages
Node
`EventTarget` is not generic. How to extend? 18 messages
Open
How to tell TS one of two optional types exist 44 messages
Open
Tuple of object keys to tuple of object values 8 messages
Open
correct type inference for converting an array to an object 16 messages
Resolved
How to destructure a value if it may be undefined 16 messages
Resolved React
Expression is not callable 17 messages
Resolved
keyof typeof JsonFile Object as never 28 messages
Open Node
How to express `string | Promise<string> | Promise<Promise<string>>` etc? 7 messages
Open
Inferring a type in an array of objects based on a string literal 27 messages
Resolved
What is the correct way to model sparse arrays in TypeScript? 25 messages
Resolved
Json parser not working 15 messages
Open Node
when i run c code in vs code it dont work 3 messages
Optional type 17 messages
Resolved
Discriminated Union Reused Prop Type 24 messages
Resolved React
How to correctly reference dependent project 3 messages
Open Tooling