help-typescript

11339 threads · Page 109 of 227

Class exported from library thinks it's two different nominal types 10 messages
Resolved
How to correlate types between two variables 24 messages
How to access nth type from the tail of the tuple 7 messages
Open Tooling
tsconfig shenanigans 5 messages
Open
Rows returned from querying sqlite3 db are 'undefined' 7 messages
Open Tooling Node
Is it possible to disable verbatimModuleSyntax for certain files or folder? 4 messages
Open
How to fix "Object is possibly 'undefined'." 28 messages
Open
Socket.io response type based on param 25 messages
Open Node
React TypeScript error 8 messages
Open React
Generic type that can be one of a set of custom types 58 messages
Resolved React Node
Wanting to make it ok that I'm accessing an object by a key that might not be in the object 22 messages
Open
Can someone explain this solution from challenge 2 messages
Resolved
p-file upload, rename and remove methods 32 messages
Resolved Angular
Type 'string | number' is not assignable to type 'never'. 11 messages
Open
Is it possible to narrow an indexed type? 32 messages
Resolved
Object.defineProperty() that resets on every new instance 56 messages
Open
How to transpile to index.mjs? 10 messages
Resolved
I am working on a college project and have reach a road block 17 messages
Open React
when using flatMap as a filter, typescript infers the return type to be `Type[][]` 200 messages
Resolved Node
should i study Typescript first or Javascript? currently im new and only know C language 4 messages
Open Tooling
`rootDir` with project references 4 messages
Resolved
Extracting parameters from a function call into a variable produces TS errors 4 messages
Node
infer type of generic within an array of objects 68 messages
Open
End-to-end type safety, from PostgreSQL to React using Kanel and tRPC (Question) 14 messages
Open React Tooling
Property 'div' does not exist on type 'JSX.IntrinsicElements'. 2 messages
Open React
Union type not narrowing down in switch case 2 messages
Open
Extends clause + Pick = invalid property without type union addition? 6 messages
Resolved
Any way to asset as const outside of the function call? 14 messages
Resolved
Index signature of generic obj in class 5 messages
Open
Destructuring known values that are undefined? 3 messages
Open
Can't load project definition file 78 messages
Open Tooling
There are types at ..., but this result could not be resolved when respecting package.json "exports" 4 messages
Resolved Node
How to import different monorepo package properly? 3 messages
Open
how to generate types from knex 9 messages
Open
Infer return type of arrow function correctly with optional param 11 messages
Resolved
TS doesn't complain when returning wrong data type from a function 5 messages
Open Node
Type too large to serialize 31 messages
Open
RTCStatsReport Issue in Library 14 messages
Open React
Whats the recommended way to define a component that accepts optional props? 14 messages
Open React
Get number of options in union type 7 messages
Open
Correct type of simple Map? 9 messages
Open
`ReturnType` of generic overloaded function resolved and errors out simultaneously 3 messages
Resolved
Mapped types from array 4 messages
Resolved
How do I write an "assertString" function? 51 messages
Open
[start, number].concat(array) pattern not typing correctly in Typescript? 6 messages
Open
Typescript Typing Null 13 messages
Resolved
Removing an assertion if possible 6 messages
Open
Can i retrieve unused generic type? 17 messages
Resolved
How would you construct a type for a function that either takes a Record<string, unknown> or no arg? 25 messages
Open
Custom field assignment function 12 messages
Vue Resolved