help-typescript

11339 threads · Page 11 of 227

I want TypeScript to emit warnings for unused expressions and variable assignment without value. 39 messages
Open Node
Mapped Type into Array 11 messages
Resolved
auth0 with nestjs and Neon 3 messages
Open
Cross reliant type inference 57 messages
Resolved
Complex recursive inferred types 20 messages
Open
An assert-guard to ensure item is in the enum 13 messages
Resolved
can someone please help me define a schema in zod4-mini 33 messages
Resolved
CODING BEGINNER NEED HELP 6 messages
Open
POJO / dataclass-esque objects in TS 24 messages
Open
Can this be simplified or at least repeat less stuff? 30 messages
Open
Modified index access type 7 messages
Resolved Node
passed function return types 12 messages
Open
PDF Parsing 3 messages
Resolved
Inference leak 13 messages
Resolved
Why is OutputFor<boolean> inferred as never but OutputFor<string> works? 4 messages
Open
How to make it find the wave 2 messages
Resolved
Can't debug a type. 54 messages
Resolved
Can't pass const array to as a parameter that seems it should be a supertype of the array 6 messages
Resolved
Different instanceof behaviour in typeguard vs inline 10 messages
Open
TypeScript: Query method returns any and options is typed as any despite correct type inside method 5 messages
Open Node
`satisfies` some elements in a tuple 5 messages
Open
Typescript + React help 8 messages
Open
Initialising an empty object after explicitly defining its type 3 messages
Open
Missing type error when comparing constructors 11 messages
Open
Issues detecting paths defined in tsconfig.spec.json by my .spec.ts files. 30 messages
Open Angular
Type based property presence 42 messages
Resolved
override nullability in Partial<T>. 2 messages
Open
Test fails because isPlaying() returns false even when is_active is true 3 messages
Open
.snakeCase in lodash is not a function? 7 messages
Open
Static generic with this strange behavior 12 messages
Open
How do I write types for an alias defined module? 3 messages
Open
Argument of type 'UseMutationConfig<MutationParameters>' is not assignable to parameter of type 'Use 2 messages
Open
How do you handle indexing into objects? Seriously ... 8 messages
Open
Minor inconvenience with generics 5 messages
Resolved
Record not narrow enough 16 messages
Resolved
Objects with a member function taking subset of strings from a list of const strings on themselves 15 messages
Open
Confusion around Partial Generics 45 messages
Open
Variables that hold DOM elements make tests fail in typescript (with Jest). 15 messages
Resolved Tooling
Type safe Object.fromEntries return type 6 messages
Open
When altering a tuple with a type, it cannot be passed in an array of that type to another type 7 messages
Resolved
How does this code work? Converting from Union to Tuple 26 messages
Resolved
Circular type aliases 37 messages
Resolved
satisfies vs as for unknown types 17 messages
Resolved
Discriminated Unions not detecting type based on parameter narrowing 8 messages
Resolved
Dependencies cause many "Duplicate identifier" errors 11 messages
Open
Map a number wrapped in backticks to a number? 13 messages
Resolved
Allow interface overriding from typescript package 5 messages
Open
How to infer types from an array in a generic object 22 messages
Resolved
Help with data structure 35 messages
Open Node
Best Practice when Backend returns inconsistent types handling. 2 messages
Resolved Angular