help-typescript

11339 threads · Page 188 of 227

Why can't `x === undefined` type-narrow? 7 messages
Open
Omit events with two parameters 60 messages
Open
How to properly declare an interface for an array of objects? 25 messages
Resolved
Adding a type to an "as const array of objects" errors: "Type alias circularly references itself" 77 messages
Resolved
How do I use "as const object" keys or values to define types like with "as const arrays"? 9 messages
Resolved Node
tsconfig' s module vs package.json's type? 103 messages
Resolved
How can I simplify this? 4 messages
Open
Metatype function typing 11 messages
Resolved
Typed destructuring in function arguments 7 messages
Resolved
Conditional Return type not narrowing 20 messages
Open
Same type with any 45 messages
Open
help with page layout, footer covers content 2 messages
Resolved
Is there any way to mark a field inside of an array as not null or undefined? 32 messages
Open
typecheck readonly? 96 messages
Open
How to do case analysis of a UNdiscriminated union? 9 messages
Open
What does the error mean (image attached) 20 messages
Resolved
Dependent type arguments won't work 6 messages
Open
Hi how can I do `as const` from `Object.keys(myObj)` 5 messages
Resolved
Howto import an exported default class ? 14 messages
Resolved
Converting from one type to another without using function overload 7 messages
Open
unknown except not undefined and not null? 66 messages
Resolved
New TypeScript Project best practice 35 messages
Resolved
Re-render parent component 38 messages
React
Compile specific file in same folder 21 messages
Open
Having difficulty using keyof with nullable object and callback function 29 messages
Resolved
How do automatically generate TS? 38 messages
Resolved React
How do I convert my Javascript website to a typescript one? 75 messages
Resolved
AbortSignal type in a universal package 12 messages
Resolved Node
isFinite(date) 43 messages
Resolved
extending global interface in typescript if anyone 71 messages
Open React
no overload matches this call 48 messages
Resolved Node
`as const` without `readonly` 16 messages
Open
How can I infer that something has at least 1 key of an expected type. 5 messages
Resolved
Is something wrong with my project's tsconfig? 91 messages
Open Tooling
Const parameter with intersection type doesn't function 2 messages
Resolved
Is it possible to abstract away custom enum creation without Higher Kinded Types? 128 messages
Open
types for a function that removes array duplicates from a 2D array 21 messages
Open
Signup-view.jsx and Mainview.jsx not working right. 2 messages
Open
How to infer values of typed const object? 4 messages
Open Node
Typescript 5 const type parameter 18 messages
Resolved Node
Typescript not detecting that I verified function parameter is part of a union type 39 messages
Open
Is it somehow possible to type the props of the CurrentComponent? 5 messages
Open React
Parsing user supplied value for string literal type 9 messages
Open
Generic, which extends recursive types, does not work with interfaces 9 messages
Open Tooling
Unmounted child components state is preserved 11 messages
Resolved React
Get custom type file from @types 6 messages
Open
ELI5 Why does `any` work but `unknown` doesn't in this case? 7 messages
Open
Template type changes assignability, even though type is already string? 6 messages
Open
Is it possible to write a function from an array of discr unions to a tuple of discr arrays? 25 messages
Open
How do I tell my decorator about the static properties on my class? 10 messages
Open