help-typescript

11339 threads · Page 108 of 227

Code that reads file is *faster* than code that has it loaded as string? 7 messages
Resolved
How to narrow React children prop that accepts both a ReactNode and a function 9 messages
Open React
Get ts-node working with ES Modules 55 messages
Resolved Node
Typing () => React.JSX.Element as ReactNode 23 messages
Resolved React
Why would TSC be complaining about errors in d.ts files? 4 messages
Open
Type Number is required but my number is too big. 31 messages
Resolved
Image Data in Typescript Node 4 messages
Open Node
Make Message Protocol Map type from record of functions 3 messages
Open
React Form Input Handling Error in Task Management Web App 46 messages
Open React Node
Default Callback Value in Generic Function 15 messages
Open
Getting keys of an object with a string indexer, without losing information 4 messages
Open
Can someone help me understand how to type a destructured array? 13 messages
Open
Docs misleading: `Required<T | undefined>` is not equal to `T` 61 messages
Open
Use strings from an array to determine the keys of a return object 16 messages
Open
(minor) types error (+ playground) 17 messages
Open
How to properly type this data structure 23 messages
Open Tooling Node
Inferring instance types from array of classes 8 messages
Open
Declaring a types module for an untyped library raises TS2665 23 messages
Node
single named key in object with other keys having a different type 22 messages
Open Node
Conditional return type based on function parameter value 9 messages
Open
JSX.IntrinsicElements is giving me headaches 5 messages
Open
`readonly` doesnt infer the type like a normal variable(?) 16 messages
Resolved
Automatically infer function parameter types when composing 4 messages
Resolved
default values for Record without writing individually 16 messages
Open
Typescript Conditional Types Confusion 4 messages
Open
Type not portable 2 messages
Open Tooling Node
Can't figure out how to import from this .d.ts 8 messages
Resolved
This should work right? 25 messages
How to include a utility type in multiple projects 9 messages
Open
Can I use esModuleInterop when using type: "module", module: "NodeNext"? 4 messages
Open
DOMPurify types not found despite installed 56 messages
Vue Resolved Node
Using generics seemingly leads to reduced typesafety. 25 messages
Resolved
How to infer function type 4 messages
Open
Partial type narrowing unexpected behavior 8 messages
Open
How to setup game in React? 8 messages
Open React
migrating to ts: Object.entries for filter etc. 17 messages
Open
How to filter JSON 50 messages
Open Angular
How do you use querySelectorAll properly in TypeScript? 23 messages
Open
'format' cannot be used as a value because it was exported using 'export type'. 12 messages
Open
Define a strongly typed object with exclusively string keys 18 messages
Resolved
The type of this node cannot be serialized because its property '[iterator]' cannot be serialized. 11 messages
Resolved
Generate d.ts 39 messages
Open
Is using ! recommended for defining a generic type? 154 messages
Resolved Node
Extracting inference from function into a type 6 messages
Open
no-unsafe-call 7 messages
Resolved
How to build my typescript project without cuncurrently and nodemon? 5 messages
When should I use a constructor 11 messages
Open
Why is a type narrowed when defined as a literal but not narrowed when returned from a function? 10 messages
Open
Union type with conditional field 51 messages
Resolved
Scope case where an optional variable is true when scope 28 messages
Resolved