help-typescript

11339 threads · Page 145 of 227

Dynamic Type on Object Property Function 22 messages
Open
is there a way to have compiler directives for TS? 4 messages
Open
not sure why this subpath export doesnt work 2 messages
Create an object type without a certain key 71 messages
Resolved
conditional types based on runtime variable 58 messages
Vue Resolved
Allowing a function to take a generic variable 19 messages
Open
Create an arbitrary length chained type 16 messages
Open
How to return error in constructor 107 messages
Open
Bash script with TS variables 17 messages
Open
Whats right method to link object with builder data? 23 messages
Open Node
Is there a way for a type to create a new type that also accepts generics? 12 messages
Open
Anyone with experience in ts-pattern has matched on first element of a known tuple? 41 messages
Open
How do i type this 42 messages
Resolved React
Why does this fail to pass the type checker 16 messages
Resolved Deno
When using tsc in watch mode, is there a way to tell it to delete orphan files from dist? 4 messages
Open
inferring types for List class including only same List elements, as iterator 25 messages
Open Node
Generic method to use wrapped object types 26 messages
Resolved
Inherit return type of type property 3 messages
Open React
Help with reading directory: 6 messages
Resolved Node
Conditional type to check if a property is readonly 15 messages
Resolved
Typescript not inferring class method parameters 22 messages
Resolved Node
Generic Component Typing 2 messages
Open React
Call the right Router. Angular/Laravel 46 messages
Resolved Angular
What is the type of a const when assigning a string? 8 messages
Resolved
'T' could be instantiated with a different subtype of constraint 'Shape' 46 messages
Resolved React
Union type with Array fails 6 messages
Resolved
How do I define a void/Promise<void> with arguments 8 messages
Open
`Expression produces a union type that is too complex to represent` 90 messages
Open
Static property access in abstract and subclasses results in errors 64 messages
Resolved
Tuple representing all possible concatenations of other tuples 24 messages
Resolved
Calling a mixture of union and intersection types 32 messages
Resolved
What type is module 'this'? 11 messages
Resolved React
Typescripting a method separated from an object 14 messages
Resolved
How do you change an interface property? 13 messages
Resolved
Generic infered 12 messages
Open
`Cannot find name 'Array'` in Typescript Compiler pre-emit diagnostics 12 messages
Open
Conditional exports in Node.js give me Error:TS2307 in VSCode. 7 messages
Open
Weird inference issue 179 messages
Open
Using keyOf to index object to set value 12 messages
Open
vscode see full definition of type 23 messages
Open
Distinguish by interface implemented 20 messages
Resolved
Behaviour of extends on nested interfaces 92 messages
Resolved
Asserting a type in a loop 10 messages
Open
Covariance for Property Decorators ? 26 messages
Open
type guarding nullable array element 5 messages
Resolved
Can you remind me why I can't index a tuple in a mapped type with its own keys? 14 messages
Open
Forced to use non-nullish `!` operator even when checking for the type... 11 messages
Open
Error exporting a variable 41 messages
Open Node
How to append file extension when generating ESM output 51 messages
Open Node
Why does my switch statement not work? 21 messages
Resolved Node