help-typescript

11339 threads · Page 170 of 227

Weird functions overload parameters matching behavior 22 messages
Open
Simplify function with type guards 24 messages
Resolved
Types of an object with properties that aren't predefined which have its own properties 37 messages
Open
"Uncaught ReferenceError: process is not defined" 30 messages
Vue Resolved Node
Nonsensical Error 103 messages
Open
Cannot find module '../../assets/konichiwa.png' or its corresponding type declarations.ts(2307) 2 messages
Resolved React
type MapEntryType 22 messages
Open
How to allow for an object extension with new properties? 27 messages
Resolved
Prevent picking repeat keys 13 messages
Resolved
How do you make a type that checks if T is an object? 2 messages
Open
code review - TypeScript Zod alternative 2 messages
Open
What does Interface & number mean? 50 messages
Open
Class decorator to add properties to class based on type 4 messages
Open Angular
Is it possible to make the Function Parameters to an options Type? 19 messages
Open
Get entries type of a map 5 messages
Open
Utility Type for Function Return Type Declaration 10 messages
Open
Actual type returned is not assignable to the function's signature return type 9 messages
Open
Unintentional Comparison, that is intentional... 11 messages
Resolved
Export/Import types as modules when using commonJS 7 messages
Open
Typing union of key-values as key-values 7 messages
Resolved
How to use a string to index an object with literal keys? 21 messages
Open
How do you turn the keys of an object into an array? 7 messages
Open
How do I "see" what TS does? eg to dump a list of exported types or write what intellisense shows 6 messages
Open
TS Node path aliases 34 messages
Open
How to import exported function from outside of root dir 3 messages
Open
How to "parse" an input string to enum or union type? 12 messages
Open
How to attach a new property to a preexisting object? 23 messages
Resolved Node
What is the purpose of assignment in function type declaration? 7 messages
Open
Type 'Point' does not satisfy the constraint 'Geometry' 20 messages
Resolved React
is there a way to distribute a union to a readonly array? 8 messages
Open
Async property assignment in sync method 30 messages
Resolved Tooling Node
Avoiding `any` when inferring type parameters (+ parameter-based conditional returns) 15 messages
Open
dynamic useRef array always empty 8 messages
Open React
Unable to use types without importing 2 messages
Resolved React
Fetching data from different file 12 messages
Open
Default type 11 messages
Resolved
Pick Help 9 messages
Open
Can I use a conditional type as the second param of a Record? 20 messages
Open
Can't declare the default export of a cjs file to be type any 25 messages
Open
Setting the next page display info from clicking on avatar 3 messages
Resolved React Node
Hello all, I am new to typescript and need some help with unit test, Please help me 11 messages
Open Angular React Node
hello getting issue while deploying my nextjs project 3 messages
Open React
Why are interfaces called interfaces in TypeScript? 3 messages
Resolved
Why is this type function extending to T / U and returning 1 or 2? 31 messages
Open
Union type has incorrect expected type 5 messages
Resolved React
Get and set object values given two keys 6 messages
Vue Resolved
Cannot assign values to an Object field when fileds have different types 21 messages
Resolved
How to resize photos and preserve metadata when uploading 3 messages
Open
Toggle data in React 3 messages
React
How to include an optional dynamic string key in return type properties 9 messages
Resolved React