help-typescript

11339 threads · Page 224 of 227

Is there a way to 'extend' a primitive type like String with its own methods? 41 messages
Open
how to derive object properties (keys) from parameter (array) type? 26 messages
Resolved
types folder won't appear in out folder 2 messages
Node
Getting the type a sibling property with a keyof another model 60 messages
Resolved React
What is the index type of this? 51 messages
Resolved
How to create a constraint on an object value type? 5 messages
Resolved
How to get interface from an object where its array value gets converted to union type. 73 messages
Resolved
[SOLVED] typeof object to union of key values 3 messages
Resolved
dictionary comprehension like in python 14 messages
Resolved Angular
How to correctly infer a keyof on an array in generic methods 23 messages
Resolved
How to group several type and null check guards into a single method 7 messages
Open
generic type of variable based on parameter value (boolean) 19 messages
Resolved
My curry function makes the type uninferrable. Can I fix this? 6 messages
Resolved
Type definition for a readonly array containing every value in a union type, but in any random order 18 messages
Open
Wrapper type as a type parameter (type currying?) 14 messages
Resolved
How do I overload an arrow function to return void OR Promise void depending on parameter 3 messages
Resolved
Record with Value as Generic Type 12 messages
How to solve this typescript error 18 messages
Resolved
Newcomer to ts - 'function' keyword missing in code. 6 messages
Resolved Node
Get sourcefile from declarationfile via TSCompiler API 5 messages
Open Node
Webstorm - how to recognize custom .d.ts files 6 messages
React Node
Setting Up Typescript with Webpack React 14 messages
Open React
How to create a falsy type Pending that behaves like undefined 18 messages
i am learning TS, i have a question about generic type 7 messages
Resolved
sweetAlert2 4 messages
Resolved Angular
How to implement a function with multiple signatures that have different return types 8 messages
Resolved
Is it possible to extend a namespace from an npm type package? 7 messages
Vue Resolved
Assignability Rules Between Generic Functions 30 messages
Resolved
dynamic properties on class definition 86 messages
Resolved Node
Getting this.createMainHelp() is not a function error but it is a function. 12 messages
Node
Type inference for keys and values 14 messages
Open
Typescript type overload not working 46 messages
Open Node
Compiled time error coming. trying to convert javascript code to typescript 2 messages
Open React
How do I override the typings for `lib.dom.d.ts` for a browser feature? 2 messages
Use an exported const object as a namespace 27 messages
Node
What does destructuring an enum array as a parameter means? 8 messages
Node
__dirname is not defined 41 messages
Node
React.HTMLProps wrong extend? 4 messages
React
How to get type of generic argument? 4 messages
Typed arguments from generic that extends union 26 messages
Why typescript doesn't show error 9 messages
propagated types in react components 7 messages
React
Destructuring function parameter objects with less words 3 messages
Resolved
Adding comment to JS block using babel 2 messages
Node
New to JS & TS, and very confused with how to correctly get a value from a Promise 174 messages
Node
Auto-generating constants with union types 7 messages
Promise Executor Type getting TS1005 and TS2344 4 messages
In a jsx file, how do I add a forall generic type argument to a function? 2 messages
React
ConstructorParameters of generic 5 messages
Type 'number | Error' is not assignable to type 'number & { [CreationAttributeBrand]? true; }' 4 messages
Node