help-typescript

11339 threads · Page 4 of 227

Get type of a narrowed function? 10 messages
Resolved
Union isn't narrowed by conditional property 6 messages
Open
tsgo native extension hangs indefinitely / gets stuck 4 messages
Resolved Tooling
Huge inferred types from type aliases (main from Zod and XState) chokes TypeScript 20 messages
Open
Cannot find type definition file for 'eslint__js' 2 messages
Open Tooling
Subclass with strict override passes parent check 5 messages
Open
`export type` vs `export { type }` 11 messages
Open
2 configs, 1 project, No intellisense :( 9 messages
Resolved
Can I define a type in terms of another type with one specific field removed? 10 messages
Open
Jest invariant for `shouldBeDefined` 5 messages
Open
Extending Function interface with custom Symbol to track metadata 14 messages
Open
Pattern for mapping union interfaces to classes in TypeScript 2 messages
Open
Why can't this global type declaration be resolved without prepending `window.`? 15 messages
typing across super/sub class 18 messages
Resolved
Type-enforcement for binding member functions passed as callbacks 27 messages
Open
How to compile Ts using GitHub? 98 messages
Open
How to handle either/or type args? 59 messages
Resolved
Can a function both return a type and assert a type? 2 messages
Open
Fix typing for constructor helper 8 messages
Open
Is there a tsconfig setting to raise an error when using the Array type as a runtime value? 8 messages
Resolved Node
Create constructor helper type 6 messages
Resolved
override readonly string property without error? 10 messages
Open
Why does `...never` evaluate to something other than `never`? 44 messages
Open
Type unexpectedly widens when used in interface 9 messages
Open
ESModuleinterop a breaking change in TS6/7 4 messages
Open
Trying to create a class method that returns a generic return type based on an input string 10 messages
Open Node
Property not existing 11 messages
Open Node
Typescript not showing lint error 13 messages
Open
Result Pattern Implementation 24 messages
Open
Extending a particular built-in interface in TS 15 messages
Open React Node
How to define type A, where A.x is a number and A.<<anything else>> is a string 9 messages
Open
How to define the data type of a particular "key" inside the props object passed to a component? 34 messages
Open React
Class implements interface, how to access interface fields? 29 messages
Resolved
JWT.SignAsync 16 messages
Open
Web socket being of type null in certain scenarios and being of type webSocket in others 9 messages
Open Node
How to get object property type by generic argument. 8 messages
Resolved
Type definition 6 messages
Open Node
Help designing routes in fastify with typescript 11 messages
Open
Type confusion 35 messages
Resolved
Help with Fastify + Zod, getting type errors on the req object. 20 messages
Resolved
Dependency injection framework 6 messages
Open
Trying to narrow HTMLFormDataValue entry to string 17 messages
Open Node
re-throwing an error in TS 27 messages
Open Node
How i can get typescript 6 messages
Open Node
Global types in auth 3 messages
Open
How's ts-go going? is there a chance sponsorship is needed? 3 messages
Open Tooling
Explanation on extends and how it works 11 messages
Resolved
Passing generic from a function to another function passed as an argument 7 messages
Open
Deprecating a union property 41 messages
Open Tooling
Narrowing using instanceof 17 messages
Resolved