help-typescript

11339 threads · Page 203 of 227

Write a generic that resolve the type matching a nested key within an interface 9 messages
Resolved
How to properly expose type declarations in Node package 2 messages
Open Tooling Node
Define type based on key value 12 messages
Open
How to, in a rest operator to a function, remove previously defined elements from the options? 40 messages
Resolved
Stopping TSC from generating `fileName.js.map` and `fileName.d.ts`. 9 messages
Resolved
how to solve Type 'boolean' is not assignable to type 'never'.ts(2322) which is coming at this line 12 messages
Open React
How to define fs and require? 100 messages
Resolved Node
How to extend a const tuple? 52 messages
Resolved
Creating a type from a child of a union type. 10 messages
Open
types challenges question 12 messages
Open
Is there a type to represent a boolean as a union of the strings ("true" | "false") 9 messages
Open
Is there a way to *not* preserve type alias? 20 messages
Open
Detecting objects 5 messages
Open
Where does logic get put when calling an imported class/function/method? 3 messages
Open
findIndex is returning number / undefined instead of number 6 messages
Resolved
Class that allows extra properties with arbitrary or index-typed keys 3 messages
Resolved
Strange type error 16 messages
Resolved
Help me figure out what kind of type this is 10 messages
Resolved
Using generics to convert type A to B using keys of A 16 messages
Open
How to say "This object but without any undefined values" 102 messages
Resolved
Undo index type interpolation (get `'Sheep' | 'Horse' …` from type 'SheepList' | 'HorseList' | …`) 47 messages
Resolved
How to make TS behave consistently wrt. directory imports 15 messages
Open
Using interface/objects in another file. 17 messages
Resolved Node
Is it possible to narrow the type of argument to this function? 100 messages
Resolved
How do a require a static method on a derived class? 4 messages
Open
HELP - Creating Conditional Type [Pattern Matching] 13 messages
Open Node
VS Code keeps stripping my `import type` 6 messages
Open
IntelliSense does not work in nested object 28 messages
Resolved
Left is (actually) plain JS and is safe, the other is TS and appears unsafe 20 messages
Node
Is there a way to use require.cache like JS 11 messages
Resolved Node
Property does not exist error 15 messages
Resolved
How to use source map files with node app? 24 messages
Resolved
Optional includes 17 messages
Resolved
can't create partial object 12 messages
Resolved
how do i return a array of string 24 messages
Resolved
Make two function take same parameters but unknown 11 messages
Open
Why can't i index this object? 42 messages
Resolved
Recursive type 7 messages
Resolved
Checking if an object is a type of a interface 8 messages
Resolved
"Narrow" type errors 66 messages
Resolved
How to import Generator from ES5 types? For my declaration File 7 messages
Resolved
How to type "Pipeline" (I am not sure of the correct term for this pattern)? 29 messages
Resolved
Conditionally spread arguments 8 messages
Resolved
File structure in React project 17 messages
Resolved React
Importing typescript exporting libraries. 4 messages
Open React Node
Generator types dont work in d.ts files 35 messages
Resolved
Error: Unknown or unexpected option: --inspect-port 9 messages
Open
Filtering array by generic 11 messages
Resolved
Iterating array in a functional way in TypeScript 14 messages
Resolved
Generating array in a functional way in TypeScript 17 messages
Resolved Node