help-typescript

11339 threads · Page 204 of 227

Looking for a second set of eyes for declaring types 20 messages
Resolved
Handling optional arguments with generics 8 messages
Open
Why ts-node or build transforms someFunc(someVar) to (0, someFunc)(someVar)? 17 messages
Resolved Node
Async generator over aws-sdk 'nextToken'-style client methods 20 messages
Open
Nested string literal constrainers 10 messages
Resolved
Typecasting Issues 16 messages
Open
Why do errors for incorrect parameter types only pop up after a space or new line? 26 messages
Open
installing dynamic methods on a typescript class 4 messages
Resolved
Is it possible to type a *named* function using a previously defined type? 3 messages
Open
Alternative to multiple replaces 7 messages
Resolved
Generator/Iterator wont work for generator functions 13 messages
Resolved
declare type of an attribute in parent class without defining it 10 messages
Resolved
sequelize-cli-typescript migration problems 10 messages
Resolved
generic method for two properties of class of same functionality but different names 9 messages
Open
How to force the argument of a function to be of a specific Type property. 47 messages
Open
Removing a property of an object 5 messages
Resolved
Routing works but components do not load 4 messages
Resolved Angular
separate-type-imports vs inline-type-imports 17 messages
Resolved
SyntaxError: Cannot use import statement outside a module 38 messages
Open
Why it happens on only one file (that's where i declare it) while i declare it globally 39 messages
Resolved Node
Inference Error 5 messages
Resolved
Constraining a generic type to a union of string literals 41 messages
Resolved
Is there any way to add a the same field to every type in a union type? 49 messages
Resolved
optimized type keyword ? 41 messages
Open Angular React
Difference between return setState and setState then return 8 messages
Resolved React
typescript not throwing error for wrong type 28 messages
Resolved React Node
// ^? extension 5 messages
Resolved
Argument of type T is not assignable to parameter of type T 31 messages
Resolved React
Typescript is not showing the "X is possibly 'undefined'" error for some reason 20 messages
Resolved Tooling
Zod Object has either this or that property 9 messages
Open
Type 'FormEventHandler<HTMLElement>' is not assignable to type 'FormEventHandler<HTMLElement> 6 messages
Open React
Object.assign adds new class members 10 messages
Resolved
Unable to use conditional type as return type 10 messages
Resolved
Is there a clean way to handle errors in typescript instead of using a bunch of try catch blocks 3 messages
Open Node
Getting `Cannot invoke an object which is possibly 'undefined'` for properly (I think?) typed object 40 messages
Resolved
Getting generic type on the second parameter of tuple 39 messages
Resolved
Generify the return type of an object full of functions 9 messages
Resolved
How to turn a block of code into a function without breaking types? 38 messages
Resolved React
Cannot find name 'fetch' 17 messages
Open
How to setup a generic type for object->array->object 27 messages
Resolved
Pass service reference to an anonymous class 7 messages
Open
Map with definite keys and values 7 messages
Open
Typescript not throwing error when regexing an object 6 messages
Resolved
Spreading iterator as function arguments 7 messages
Resolved
TypeScript 4.9 broke my code. Can someone explain why ? 17 messages
Open
Reduce with initial keys not directly related to current value 83 messages
Resolved
Return type too wide or too narrow in custom find operation 3 messages
Express middleware problem 3 messages
Open
Inferring class members 30 messages
Resolved
Defining a generic type when looping classes implementing a type 23 messages
Resolved