help-typescript

11339 threads · Page 216 of 227

Convert type of only string to enum? 15 messages
Resolved Tooling Node
Variable showing as potentially undefined even after check in JSX 11 messages
Resolved
What's wrong with this narrowing? 9 messages
Open
How do I type a function that instantiates classes in a type safe way? 53 messages
Open
Object.is type that supports equality? 24 messages
Open
Canvas complex shape drawing issue 14 messages
Resolved
TypeScript IntelliSense loading for ages 2 messages
Resolved
AsyncFunctionConstrucotr doesn´t exist in TS? 22 messages
Resolved
Generalize functions with different numbers of different generic parameters 35 messages
Resolved
Feedback on TS function 3 messages
Open
Type variables to access a nested property in object (ex: obj[var1][var2] -> how to type var2) 41 messages
Open
Cannot update variable inside fs.readFile() 11 messages
Open Node
Ensuring a nested object literal uses the same keys 10 messages
Resolved
How do I accept a key/value pair as an argument to a class method? 38 messages
Resolved
Deep import in .d.ts module definition 6 messages
Open
Generic type and function return 4 messages
Open
Getting function arg type and setting it to return value 4 messages
Open
After setting tsconfig paths, control clicking won't take me to the file anymore? 9 messages
Open
TS for multiple type parameters 28 messages
Resolved
Generics Type Narrowing 38 messages
Resolved
Typing complex form generator function with config object 7 messages
Open
Default Assignment and Generics 31 messages
Open
How to use class declaration (for a global class in `window`) from .d.ts? 5 messages
Open
Type Predicate as a private property 6 messages
Resolved
Can TypeScript extend an instance's type after calling the instance's method? 4 messages
Open
PromiseOrValue generic losing typing 8 messages
Open
Static properties in types 8 messages
Resolved
Define type of parent object in a map function? 3 messages
Open
How to enforce an array of objects of different type to have an object of a certain type 21 messages
Open
jsdoc comment required 5 messages
Open
Cannot put map() cheerio loaded html table into a JSON string 4 messages
Open Node
How to have a class with a generic type (which itself has a generic type)? 10 messages
use array value as key 37 messages
Open
Wrapping function with multiple call signatures 3 messages
Open React Node
Problem with type resolution on monorepo 25 messages
Resolved Node
TypeORM column foreign key but is index (i don't want it to be) 63 messages
Open Node
Assignability of `number[]` and `[...number[], number]` 16 messages
Resolved
DefinitelyTyped search gone? 9 messages
Open
never type unexcepted 177 messages
Resolved Node
How to silently transform and validate data from an API? 13 messages
Open React Node Tooling
A few questions on Generator and AsyncGenerator 112 messages
Resolved
Need help typing a function that returns a promise. 16 messages
Resolved React
Need help with dynamic types (TS2322) 35 messages
Resolved
TS2322 during signature overload 13 messages
Open
TSC and VScode errors mismatch 7 messages
Open
Unexpected token in visual studio code from classes. 16 messages
Resolved
Should I use `type: "module"` in package.json when using Typescript? 62 messages
Open Tooling Node
Generics and inheritance 58 messages
Resolved Node
Typing issues with tailwind colors and variants 13 messages
Resolved
how fix typeguard for payload in this example 33 messages
Resolved