help-typescript

11339 threads · Page 202 of 227

Returning an array from a function in a different file 72 messages
Open
Generic NonNullable how to? 21 messages
Open
What assertion type to use? 11 messages
Resolved
How to get keys from interface which is a mapped type? 38 messages
Resolved
I am trying to change some compilerOptions and don't see any changes 112 messages
Open
Conditional types determined by parameter values 41 messages
Open
Extract return type of function 16 messages
Open
error TS2742: The inferred type of 'X' cannot be named 23 messages
Open
How to get parameters from generic if possible ? 4 messages
Resolved React
Returning same type as function argument 14 messages
Open
Query against an API, and insert response into postgres DB 54 messages
Resolved Node
why is array inferred as string or number? 19 messages
Resolved
How do I trim down this object creation? 16 messages
Resolved
Get the key of nested object ? 15 messages
Open React
How to custom promise function name, see description 3 messages
Resolved
string becoming `unknown` after re-assignment 13 messages
Open
What can prevent TS to properly narrow types on some cases ? 19 messages
Open
How to keep object key order in the type when combining objects? 15 messages
Open
readonly tuple from interface or interface from readonly tuple? 56 messages
Resolved
need a way to have TS recognize subclassible factory and product pair 60 messages
Resolved
Generic array in interface 25 messages
Resolved
How to reflect optional properties in return type? 33 messages
Resolved
tsc reporting errors while VSCode being correct 13 messages
Open Node
Set a type of a function based on a callback with constraints? 15 messages
Resolved
CORS Policy Error 17 messages
Open Angular Node
how to do code generation at compile time? 43 messages
Open
noUncheckedIndexedAccess with array index access 5 messages
Resolved
JSDOC typing for vscode : optional ES6 class property 24 messages
Open Tooling
How to access first element of an multi-typed array? 3 messages
Open React Node
Where to position brackets when doing a conditional intersection? 8 messages
Resolved
How to enforce length of record based on length of array? 5 messages
Open
express ts receving same request twice somehow 3 messages
Open
executable 48 messages
Open
Narrowing union type question 35 messages
Resolved
Best way to ensure function only returns undefined if arg is undefined? 21 messages
Open
Why does TS say 'Omit<T, "prop"> & { prop: string; }' is not assignable to parameter of type T? 17 messages
Resolved
need help defining a type for this object 78 messages
Open
Error trying to destructure nested object 7 messages
React
Type for an object whose properties can only be types from third-party library 38 messages
Resolved
How to have tsconfig in an application with node.js and regular ts 2 messages
Open
`strictNullChecks: true` causing TS error that I'm not sure how to resolve 4 messages
Resolved
Functions union > arguments ANDed? 25 messages
Open
What is the type of the async function constructor? 24 messages
Open
Keys from variables in object literal 11 messages
Resolved
Why is this giving an error? 22 messages
Resolved
TypeScript "currying" alternatives 5 messages
Resolved
Get interfaces keys 6 messages
Open Tooling
Record<string, unknown> but must implement {id: string} 18 messages
Resolved
Assist TypeScript with Go To Implementation (VsCode) 2 messages
Resolved
Function that takes in an inferred generic type, but adding another required generic 4 messages
Resolved