help-typescript

11339 threads · Page 199 of 227

TypeScript doesn't know I can use a string to index a const object after if statement check 24 messages
Resolved Tooling
Using class method as `this` type restriction in class with private fields 4 messages
Resolved
Read package.json imports from tsconfig 13 messages
Resolved Tooling
Type differences in database and app 5 messages
Open
What am I doing wrong here? Trying to select a function based on type of a function parameter 17 messages
Open
Are template literals a good refactor for this code? 4 messages
React
ts & node & esm: absolute paths in imports, cleanest approach, without ts-node possible? 13 messages
Open Node
same type narrowing logic doesn't work on a different example 4 messages
Open Tooling Node
How to cast object to Date successfully 10 messages
Open Node
How do I use `satisfies` to ensure that all values of a tuple are present in a Record? 4 messages
Open
How can I get multiple checkbox values? 13 messages
Open Angular
Weird behaviour with return type of function intersection 3 messages
Open
Property getting evaluated to `boolean` instead of actual value 2 messages
Resolved
Do you want some magic? 21 messages
Open
Why am I getting type errors here? 92 messages
Resolved React
No error type when code is inlined but when separated into more variables there is 5 messages
Open
Storing React Element in Local Storage 17 messages
Resolved React
how can I specify which union variant I mean? 3 messages
Open
Why number indexes are treated as string ones? 17 messages
Open
Difference between [k in string] and [k: string]? 25 messages
Resolved
An odd problem with return type 24 messages
Open
How to make the function more generic? 5 messages
Resolved Node
type assertion 45 messages
Open
Map over Union 2 messages
Resolved
`x in y` check doesn't make `x[y]` truthy? 5 messages
Open
Review about portfolio... 3 messages
Resolved React Node
How to create a function that accepts an object and a spread string[] of keys that are recursive? 18 messages
Resolved
Reduce on Object.entries 7 messages
Resolved
Decorator Paths Not Working 10 messages
Open
Trying to write a generic object store for svelte... 42 messages
Open
strict seemingly not enforced with Spicetify Creator 34 messages
Resolved
Fastest way of finding a file's tsconfig from an array of tsconfig 23 messages
Open
Global tsconfig file 5 messages
Resolved
How to upcast? 16 messages
Resolved
Default destructured value issue 22 messages
Resolved
Dynamic imports type safety? 21 messages
Resolved
Type 'A | B' is not assignable to type '{email: string; password: string; confirmPassword: string}' 9 messages
Open React
Optional fields in object via & 20 messages
Resolved
TS sees component as a type 6 messages
Resolved React
limit keys of mapped type 24 messages
Open
Property 'bar' does not exist on type 'Record<string, any> | undefined'. 62 messages
Resolved
Why `.flat` on array is not recognized in `es2022`? 43 messages
Open
Optional chaining in typescript? 6 messages
Open
String union is inferred as string in generic function 31 messages
Resolved
Passing type to key in JSON 16 messages
Open
How TypeScript resolves ESM while using the algorithm to resolve CJS module? 4 messages
Open
Generics with type alias 10 messages
Resolved
How to get unsigned 8-bit numbers? 14 messages
Open Tooling Node
Help w/This expression is not callable. Type 'unknown' has no call signatures. I'm passing generic.. 7 messages
Open
Type narrow with generics, avoiding "could be instantiated with a different subtype" 13 messages
Open