help-typescript

11339 threads · Page 114 of 227

Why does this code compile? 86 messages
Open
genericizing object assignment 21 messages
Open
Trying to understand distributive conditional types 8 messages
Resolved
Class as an argument 7 messages
Resolved
Possible to have default value for inferred string literal parameter 11 messages
Resolved
Should I use classes or normal functions? 9 messages
Open
typeguard for function including checking return type? 6 messages
Open
Type object property function inline? 11 messages
Open
Size prop; `Type 'string' is not assignable to type 'never'.ts(2322)(parameter) size: never` 8 messages
Open
What does assets.image`player` mean? 4 messages
Resolved
Why can't TS figure out the correct type of this class property based on its interface? 5 messages
Resolved
Incorrect narrowing when conditions get a little complex 25 messages
Resolved
Gitting Nginx 504 error 3 messages
Open React Node
Why can't my `KeysOfType<T, LeveledLogMethod>>` be assigned to a `LeveledLogMethod`? 39 messages
Open
How to filter type properly 16 messages
Resolved
Mapping to a button 9 messages
Open
Object.assign not initializing properties as expected in constructor 8 messages
Open
ESM package importing commonjs "This expression is not callable" 9 messages
Open React Node
Im having issues creating a path type from a zod schema 3 messages
Resolved
How to call an overloaded function inside of a generic function? 44 messages
Open
How to resolve generic based on a value in an object type 11 messages
Open React
Output of Parameters utility type to Object 18 messages
Open Node
Change type of generic function depending on a boolean argument 15 messages
Open
How to transform typescript code to javascript 7 messages
Resolved Tooling
How can I use a generic as a string literal? 7 messages
Open
Schema/data type for a form giving weird errors 5 messages
Open Tooling
tsc command with wildcard does not work. 7 messages
Open
Forwarding inferred params from one functions to another 8 messages
Open Node
`satisfies` doesn't narrow as much as I'd expect 62 messages
Open
Why the discrimination isn't working? 12 messages
Resolved
I can’t get the type of an array of arrays, each of which contains a React.FC and an enum 5 messages
Resolved React
Gettin' an array out of a yaml object 74 messages
Open Node
Redux Toolkit clear state on refresh 7 messages
Resolved React
How to prevent lexical error in build? 3 messages
Open
Why are inherited props not discriminated? 32 messages
Resolved React
Typing issue 10 messages
Resolved
Type guard for multiple arguments. 4 messages
Open
Adding class properties using stage 3 decorators 3 messages
Open
how to type a react props correctly 6 messages
Open
Why does TypeScript use the intersection operator instead of union? 14 messages
Open
Providing Overloads for Another Module From Own Module 3 messages
Open Node
How do I refer to the type of an interface's "constructor" function? 89 messages
Resolved
Can TS infer types in my function body if the types are conditional? 31 messages
Open
Static getter in interface. 20 messages
Open
Access class constructor from method decorator in TS5 13 messages
Resolved
how to accept type only through a function 81 messages
Resolved
I cannot figure out how to type this component being passed to another component. 4 messages
Open
How to remove unknown values from object 27 messages
Resolved Tooling
Class property reset even if prototype is modified using property decorators 7 messages
Resolved
Axios call does not return the body in case the status != 200 26 messages
Resolved