help-typescript

11339 threads · Page 198 of 227

globalThis extend w/ interface 7 messages
Open
how does ts 5.0 extends array work with multiple arrays? 6 messages
Open Tooling
cannot use every on union of arrays 7 messages
Open
TS Generics, 7 messages
Open
Avoid number variable having a string type at runtime 11 messages
Open
Type argument constraint "not T" or "not null | undefined" 20 messages
Open
Type 'void' is not assignable to type '(string | number)[]' 13 messages
Open
How to set type on a function? 4 messages
Open
Trying to import a JavaScript library: chance.js 45 messages
Resolved
change return type if optional parameter is present 58 messages
Open Tooling Node
Typescript Generics - Generic return type 16 messages
Resolved
ESM module - how to configure in tsconfg.json? 2 messages
Open Node
Inconsistent typings for arrays with nullish values 9 messages
Resolved
Type-safe object keys 8 messages
Resolved
Is it possible to enforce a type to have every key from an enum? 64 messages
Resolved
Why type of this changes to another ? 11 messages
Resolved Node
NodeJS node:worker_threads but using ts-node 10 messages
Resolved Tooling Node
Why is this property undefined? 6 messages
Resolved
Why is this code giving error TS2366? 11 messages
Resolved
Is it possible to get the name of a class as a type? 12 messages
Open
Record<x,y> with or || operator allows invalid type? 18 messages
Open
Is it possible to enforce generic discriminated union types in multiple method arguments? 12 messages
Open
Having a Mixin / Inheritance problem with Typescript - string not assignable to string|number|symbol 12 messages
Resolved
ensure all child classes have method, but each could have different function signature 7 messages
Open
New to TS, need some help setting up next auth / code sandbox attached 20 messages
Open React
Does anyone know how I can refactor this? 7 messages
Open React
Is it possible to validate the length of a tuple? 25 messages
Open
mixin causing problems with inheritance 219 messages
Resolved
Extract value from string 18 messages
Open
How do I use the `satisfies` operator with an array of classes? 4 messages
Open
Flow typing interaction with functions returning never 4 messages
Open
Property does not exist on type 'unknown' 3 messages
Open React
Is it possible to literally override de NodeJS.ProcessEnv interface? 6 messages
Open
Generics on Satisfies operator 3 messages
Open
Creating a type based on decorated properties in a class 5 messages
Open
get type from object key returning value from function 10 messages
Resolved
Make a parameter of a function be a keyof an object, and ALSO be type string 6 messages
Resolved
Separating types from js: React forwardRef 9 messages
Open React
How to inherit generic from a function? F.e. from `forwaredRef()` 10 messages
Resolved React
Figuring out the return type of a dynamically indexed property 9 messages
Resolved
id prop in Textfield ts2322 5 messages
Resolved React
'T' could be instantiated with an arbitrary type which could be unrelated to '...' 27 messages
Open
VIM/VSCODE tRPC/TypeScript Data display in tool-tip is taking 5-10 secs. 9 messages
Open
Using a Builder with method depending on a passed parameter 10 messages
Open
Polymorphic factory 11 messages
Open
How to let typescript help me narrow a generic to a specific type in switch cases? 14 messages
Open
Property 'x' does not exist on type 'y' | undefined, when 'y' can't be undefined... 15 messages
Open React Node Tooling
Show calculated type value instead of wrapped generic type 5 messages
Open
Constrained generic object type 10 messages
Open
Callback not inferring generic type passed 12 messages
Resolved