help-typescript

11339 threads · Page 88 of 227

Infer return type by the key 24 messages
Resolved Node
declare interface 3 messages
Open
read files relative to src and dist 29 messages
Open Tooling Node
How do we tell TypeScript not to infer property types in plain JS classes if they were not declared? 16 messages
Open
Matching Array indexed item type with original item type 4 messages
Open
ts 2366 Help understanding this please. 14 messages
Open
Assign populated object to empty object via loop 12 messages
Open
Using a conditional expression to get the return type of a generic function 31 messages
Open
Mapped Type 9 messages
Open
How to import from private package submodule? 10 messages
Resolved
Optional properties unsoundness reasons 20 messages
Resolved Tooling
Inaccurate return type inference of generic context-bound function 14 messages
Resolved
Help me understand this error? 10 messages
Resolved
Inferring a default type 8 messages
Resolved
Multiple parameters type assertions using one function? 6 messages
Open
How do we merge type with variable using JSDoc? 7 messages
Resolved
Static method inheritance via new this is not type checked 4 messages
Open Node
Where is "irstNameEnabled" in this error coming from? 3 messages
Resolved
How do I create a LAN server for a game that I can connect to on my phone? 87 messages
Open Vue Node
Inferring generic return type 5 messages
Open
Type could be instantiated with a different subtype of constraint 'any'. 11 messages
Resolved Node
TS5.3 Class decorator saying it will only invoke with 1 argument instead of 2 required. 26 messages
Open Node
Issue with Exclude (I think) 12 messages
Resolved
querySelector doesn't work 61 messages
Open
Why is type never still required as a key? 7 messages
Open
Hello. I am new to typescript so apologies in advance. I have this code with styled-components 9 messages
Resolved
Generic structure with optional overload 5 messages
Open
Extend JSX Element types 17 messages
Open
How to update property type in this union? 3 messages
Open
How do I determine if a type is a numeric literal? 5 messages
Open
Need help with types 17 messages
Open Tooling Node
Why is property type correctly inferred in constructor but not in method? 118 messages
Resolved
Invalid hook call. Hooks can only be called inside of the body of a function component. 9 messages
Resolved React
Can't import octokit 119 messages
Open Node
TS error w createAsyncThunk from Redux Toolkit 32 messages
Open
How do I map an objects entries to a tuple? 39 messages
Open
I modified the code of a class in runtime but the objects instantiated did not change 26 messages
Open
Please help me with making my router library type-safe. 9 messages
Open
TypeError: data.default is not a constructor 7 messages
Resolved Node
how to type this first param of the hover function ? 15 messages
Resolved React
types missing in output 39 messages
Resolved
How to narrow class without using `instanceof`? 39 messages
Open
infer the function signature via a generic 7 messages
Open
Am I doing something silly, or does TS not allow colons? 15 messages
Open
arraysize is 0 but has values in it? 9 messages
Resolved
How do I get around possibly undefined? 12 messages
Resolved React
How can I improve this function to solve the case of props with identical values? 2 messages
Open
prettierrc: how to prevent removing of parentheses around one element in J 12 messages
Open React Node Tooling
How do I get TypeScript to complain about this unreachable branch? 36 messages
Resolved
Extract and use parameters from a class constructor 7 messages
Resolved