help-typescript

11339 threads · Page 86 of 227

VScode TSC fails to give errors for undefined variables 50 messages
Open Node
Typescript is inferring to string instead of specific string literal 5 messages
Open
allowing type hints for parameter object properties 36 messages
Open
The guide: Modules - Choosing Compiler Options is not very useful and practical 61 messages
Resolved
Array includes "Type 'string' is not assignable to type 'never'" 19 messages
Resolved
Debugging and TypeError: Cannot read properties of undefined (reading 'id') 72 messages
Open Node
Types declared as const are resulting in unions 6 messages
Resolved
Create a multi option string type from specifc key from given object 6 messages
Open
Placeholder for automatically inferred type 8 messages
Open
Is it possible to both accept all strings but also get intellisense for a union of strings? 3 messages
Resolved
String array as const made of property from object array as const with .map() 12 messages
Resolved
Why is the class-type can't narrow the type? 5 messages
Open
TypeError: Cannot read properties of undefined (reading 'startsWith') 56 messages
Open Node
Map tagged union to »Subtypes« 16 messages
Open
In tsconfig.json, does module and moduleResolution change the behaviour of Intellisense? 3 messages
Open
Vue 3/TS script setup bug with style scoped WTF 27 messages
Open Vue
Is it possible to limit the scope of intellisense of some `.d.ts` files? 21 messages
Resolved
Declare variable as generic type 6 messages
Open Node
Conditional Type works but a lot of errors 14 messages
Vue Resolved Node
Two columns to become unique (composite primary key) 3 messages
Resolved React Tooling
Make method parameter optional depending on constructor parameter presence 19 messages
Open
ignore all errors on tsc command 4 messages
Open
Found all the definitions used in typescript program 3 messages
Open Tooling
How to restrict property type based on its path? 16 messages
Resolved
why can I pass invalid object keys to a function with generic constraints? 28 messages
Open
How to fix 'any' overrides all other types in this union type. 5 messages
React Tooling
Is it possible to infer function return type of using extends with given parameters? 10 messages
Open
What is easiest way to prevent matching of indirect type without introducing required property 12 messages
Resolved
Why isn't the type of method parameter inferred when a class implements an interface? 5 messages
Satisfy Function that Accepts Any Obect as Param 62 messages
Open
Has anyone achieved the holy grail of ESM w/ node16 module resolution and no file extensions yet? 11 messages
Open Node
How to unpack an array type into single function parameters? 4 messages
Open
Function with optional parameters that depend of the first one 42 messages
Open
Question about type declarations generated by tsc 6 messages
Open
How to make the type dynamic based on a different variable? 3 messages
Open
Not extrict types 13 messages
Resolved
TypeScript Class Inheritance 53 messages
Open
create heterogenous array type where the type at each index is preserved 4 messages
Open
Possible to apply generic to generic? 89 messages
Resolved
implement function in extending interface? 11 messages
Resolved
CFA on a function that removes keys from its parameter 5 messages
Open
Why does this type not work? 20 messages
Open
TypeScript Error TS2749: 'event' Refers to a Value, but Is Being Used as a Type – Need Guidance 269 messages
Resolved Node
Templated String Does Not Satisfy Constraint 53 messages
Open
TypeScript complains about an implicitly 'any' type, even when it isn't 'any'. 12 messages
Open
Do i need separated index.d.mts and index.d.cts? 50 messages
Node
how to do conditional return types based on the method argument? 14 messages
Resolved Tooling
Patterns to use when consuming JSON data 17 messages
Open
Record type with required keys consisting of all values of a tuple 17 messages
Resolved
Issue with JSON type inference 20 messages
Resolved