help-typescript

11339 threads · Page 149 of 227

How can I statically initialize all keys of an object to the same value? 8 messages
Open
Error on object that doesn't fit Record type 18 messages
Open
Generic Inside Generic Type 9 messages
Open
In a condition chain shouldn't 'message' in input establish that input has a member called message? 4 messages
Open
How do I get a function from an abstract class to return an instance of a class that implements it? 5 messages
Open
Why am I getting error "Object literal may only specify known properties"? 11 messages
Open Node
Array mapping working, but Typescript error 21 messages
Open
Unit Testing 101 14 messages
Open
How To Create A State Type For This Reducer Code 4 messages
Open React
extract a value from an parameter object to another function parameter 9 messages
Open
Generating a union type for valid strings 3 messages
Open
Why does this function call work? 31 messages
Open
jest test custom passport authentication with local strategy 6 messages
Open Node
Declaring properties in a class 16 messages
Resolved Node
pass variable to nested interface 13 messages
Open
react context type 49 messages
Open React
need help with react rendering 22 messages
Open React Node
Generic fromPairs 36 messages
Resolved
SyntaxError: Unexpected end of JSON input 10 messages
Open
Trouble with nested object keyof inference / generics 15 messages
Resolved Node
Exporting enum types across ts front end projects? 5 messages
Open React
Why does the compiler think `v: string | null` might be null after `v && v.trim()`? 25 messages
Resolved
Filtering a return type 11 messages
Open
CharacterPage : NextPage<{character: Character}> = ({character}) ... conversion into a function? 6 messages
Open
Need help to set up a small website using a module 48 messages
Resolved Node
Function conditional return type 16 messages
Open
jest: ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled. 2 messages
Open
required parameter based on type parameter value 13 messages
Resolved
Conditionnal type 23 messages
Resolved
can I define the type of a function outside its implementation within .ts files? 17 messages
Resolved
Dynamic retrieval of type from array? 7 messages
Open
Difference between "{character} : {character: Character}" AND "{character} : Character" 11 messages
Open
Type of arguments for callBack.call() 12 messages
Resolved
I want to use generics when I want to pass in generics, otherwise use the default Type 19 messages
Open
Infering type for generic type from given value 2 messages
Open React
How to infer type parameters that appear before explicit ones 3 messages
Open
how to type an instance of a class to be extended at runtime? 3 messages
Open
Generics - Base interface is missing properties from an interface that is extending it 10 messages
Resolved
Struggling to implement function from declared type in Deno 3 messages
Resolved Deno
Is it possible to augment a type from a 3rd party library and have compiler autocomplete? 3 messages
Open
How are .d.ts files created? 2 messages
Resolved
property does not exist on type 20 messages
Resolved
Type removed from intersection when mapped from union 22 messages
Open
Inferring Type for Object Literal 3 messages
Resolved
define a function to make callable only with 'new' operator 11 messages
Open
Flow of parameter generic inference 3 messages
Open
Pass array of middleware with async to Express router 5 messages
Open Node
Type not assignable using generic type 9 messages
Open Node
config for typescript:javascript 1:1 source code mapping 15 messages
Open
Typing with Enum as object key and string value 9 messages
Open