help-typescript

11339 threads · Page 83 of 227

Where to put the interface definition 3 messages
Open
trying to use the google translate api it works in my index file but not in my navbar.html 10 messages
Open Angular
Map "form" -> `HTMLFormElement`? 14 messages
Resolved
Modern best practices for throwing and handling errors 20 messages
Open
Extend type in global 8 messages
Open
Support __proto__ in object literals? 33 messages
Resolved
How to swap out these base types with a template? 9 messages
Resolved
Tuple typescript doesn't work when I want to get the first or second value 58 messages
Resolved
How can I map a tuple of objects to a tuple with optional elements? 48 messages
Open
Overloads VS Assertion 29 messages
Open
TypeScript infers different types for array of objects literals vs array of variables 10 messages
Resolved
Error on typings, cannot access to custom variable from SessionData 4 messages
Open Node
BigInt literals are not available when targeting lower than ES2020. 5 messages
Open
Generating a Type from a Record<string, string[]> 8 messages
Resolved
wanna use google translate api to make my page different langueges but dunno excactly how 177 messages
Open Angular
Implementing functions that take generic tuples 6 messages
Open
What is `export =`? 10 messages
Open
Why can't I pass `Omit<MyUnion, 'one key'>` into a function that requires `MyUnion`? 12 messages
Open
Type error at writing custom event emitter 180 messages
Resolved Node
Using `Lowercase<string>` properly 5 messages
Open
Help understanding what I need to do? 5 messages
Open
error TS2578: Unused '@ts-expect-error' directive. 6 messages
Open React
Can't reference global type 52 messages
Open
Array of generics - CIF or better way? 22 messages
Open
Suck out type of `href` of `Link` component in Nextjs 42 messages
Resolved
Why do generics need all parameters when functions don't 6 messages
Open
Print function input and return type using typescript compiler 22 messages
Open Tooling Node
"TypeError: Cannot read properties of undefined (reading 'get') at getTypeAliasInstantiation" 5 messages
Any idea why TS is not throwing error? 2 messages
Open
How to parameterise keys in a non-duplicated manner? 47 messages
Resolved React
Infering type from generic object 41 messages
Resolved
dunno how to export my framework (solved) 24 messages
Open
Intersection of array of types and AllOrNothing 29 messages
Open
K cannot be used to index type... 5 messages
Resolved
Using objects that map a discriminant into its type 100 messages
Resolved
Numeric addition concatenates numbers 7 messages
Resolved
Seeming to prefer Array rather than Map for when we need to determine if we've seen a value before. 11 messages
Open
How can I tell TypeScript that a class has the properties of a type? 25 messages
Resolved
pass @types.d.ts to server 3 messages
Open
Asserting a key is defined in Record type 4 messages
Open
Shouldn't this work due to structural typing? 8 messages
Open Node
Types within types 6 messages
Open React
How can I map over all imported types? 7 messages
Open
How to best represent these extended classes? 46 messages
Open
Pros and cons of defining arrays by a base type 11 messages
Open
i need help with link or href 24 messages
Open React
trying to add security to my angular project no erros but doesn t work 18 messages
Open
Generic to narrow down union to object type with certain key (& keep key type) 3 messages
Open
Typescript type inference is inferring wrong/non-narrowed types 5 messages
Open
codepen to angular 75 messages
Open Angular