help-typescript

11339 threads · Page 143 of 227

Button onclick function not called when using function as argument 3 messages
Open React
Is there a way to say "Given a type that takes two types" 14 messages
Open
Object possibly undefined after if statement 8 messages
Open
Create Endpoint Function 7 messages
React Node
Type not enforced on property of key when key is a union 107 messages
Open
What library would you use to extract JSDoc comments from a JavaScript file? 18 messages
Open
Low Priority - Discord.js TS help 37 messages
Resolved Node
Why does this type work only if the function is NOT inlined? 4 messages
Open
A spread argument must either have a tuple type or be passed to a rest parameter. 23 messages
Resolved
Troubles extending PassportJS User interface 9 messages
Resolved Node
How do I access DecompressionStream in TypeScript? 8 messages
Resolved
Help getting the types of a nodejs callback style function wrapping it in another function 109 messages
Open
TypeScript monorepo with project references 2 messages
Open Tooling Node
How do I make a template literal type that limits values to only identifiers? 31 messages
Open
Destructuring possible undefined objects 32 messages
Resolved
Typescript error and I am not able to fix it. 4 messages
Open React
Optional to null or T 41 messages
Resolved
switch statement type inference 13 messages
Resolved Node
.every complains when using union 5 messages
Open
When I run the ts-node server using pm2, I met an issue. 5 messages
Open Node
why am I getting the first overload of fs.readfile?? 6 messages
Resolved
type parameter constraint if value parameter is some type 46 messages
Resolved
shortest way to narrow an object and its key 12 messages
Resolved
easiest way to design nested union types 8 messages
Resolved
extract the types of nodejs callback style function 9 messages
Resolved
Need help with overwriting field type of an interface, getting a TS2717 error right now. 28 messages
Resolved React Node Tooling
Typescript FileSystem 10 messages
Open
Error serializing `.alcoh` returned from `getStaticProps` in "/". 34 messages
Open
Subpath exports not working with Angular 8 messages
Open Angular
Why variable is "X & Y" and not "X | Y"? 26 messages
Resolved React
Cors Issue 28 messages
Open React Node
Type from function is missing properties? 5 messages
Resolved React
How do I build the typescript package? 44 messages
Resolved
Placing NPM library alongside actual application 4 messages
Open
Trying to make my npm package work with require() and import 118 messages
Open Node
Is it possible to emit CommonJS type definitions from an ESM source? 3 messages
Open Deno Node Tooling
Generic and switch struggle 37 messages
Open
How do you access a union(?) type with objects in it 16 messages
Resolved Node
Writing Intrinsic Types 11 messages
Open
For as3, haxe ( canvas/webgl ) user, TS book suggestion and ideas on getting into freelance? 15 messages
Open
Argument of type 'unknown' is not assignable to parameter of type 'string' 17 messages
Open Node
What is the right way to cast Element into HTMLElement 5 messages
Open
Type narrowing 6 messages
Resolved
How to get the type of the first object key? 10 messages
Open
Weird autocomplete when using generics in classes 13 messages
Open
Typing issue 4 messages
Open
Conditonal types 9 messages
Open
nested object type narrowing 12 messages
Open
How do i return a JSON from a promise? 8 messages
Resolved
Constraints on class methods with generics 26 messages
Open