help-typescript

11339 threads · Page 137 of 227

Each member of the union type (...) has signatures, but none of those signatures are compatible 3 messages
Open
typeof any === 'object' leaves it any? 22 messages
Open
How can I construct a Tuple helper type to create tuples? 4 messages
Resolved
Updating first letter of a string... Type error 6 messages
Resolved React
how to type fileList and use in useState() 9 messages
Open
Superfluous "files" tsconfig option 5 messages
Open
Is This TypeScript Code Validating Enum Constraints Correctly? 19 messages
Resolved React
How do I pass a generic type parameter to a higher order function? 7 messages
Resolved
Is there a utility type that I can use that is the opposite of `Readonly<T>`? 6 messages
Resolved
Is it possible to check from a function if an npm package exists? 27 messages
Open Node
definitely typed types 56 messages
Open
Simple conditional type as return type doesn't seem to work 44 messages
Open
Type narrowing for number 6 messages
Resolved
record<string, string> better or map<string, string>? 7 messages
Open
I want to use 2 similar enums interchangeably, but TS won't allow it 6 messages
Resolved
How to return a void function from const? 17 messages
Resolved
"Argument of type 'string' is not assignable to type 'never.'" 4 messages
Open
JSON.parse 'string | null' is not assignable to 'string' 16 messages
Open React
How to exclude -1 from a type? 21 messages
Open
Missing keys when large array is imported 8 messages
Open Node
Narrowing down rest params in function 18 messages
Open
Destructuring not working 8 messages
Resolved
Problems with Intersection Types 5 messages
Open React
array destructuring - wrong types 2 messages
Resolved
".id" not working 5 messages
Resolved
still a bit confused by the difference between `interface` and `type` 19 messages
Open
Union type narrowing in conditional types 28 messages
Open
Type '{}' is not assignable to type 'Record<T, number>' 8 messages
Resolved
extract generic types from react-query QueryOptions 2 messages
Open
How to import an interface from a exported module in a .d.ts file within an npm package 5 messages
Resolved Node
How to create a .d.ts definition for this code 16 messages
Open
Cannot assign an abstract constructor type to a non-abstract constructor type. 13 messages
Resolved Node
TS Playground isn't working 23 messages
Open
Object assignment 21 messages
Resolved
Transform Interface's members in a union type 8 messages
Resolved
Combine two partial sets into whole type in a type safe way 20 messages
Open
React context doesn't work anymore since I migrated my project with TypeScript 17 messages
Open React
Disable a compiler option for a folder? 5 messages
Resolved Node
Optional props with default value in React Component 41 messages
Resolved React
If function returns true, parameter is not null? 4 messages
Resolved
Help me simplify this React prop pattern 13 messages
Open React
explain difference (type for shapeless object) 3 messages
Open
How to match the type of the specific key in the object? 7 messages
Resolved
Conditional types on function return type 10 messages
Resolved
Is the .pipe operator in rxjs analogous to .then when using promises? 13 messages
Resolved
How do I find the dependencies of JavaScript files that don't use modules? Can TS help? 4 messages
Open Node
Can I tell the linter not to check on a given property? 7 messages
Resolved
TS2345: Argument of type is not assignable to parameter of type 38 messages
Open
noUnusedLocals 31 messages
Open
Strict Generics 119 messages
Resolved