help-typescript

11339 threads · Page 157 of 227

Array.indexOf not wokring on non-trivial types? 13 messages
Open
How to infer request types from Zod validators? 6 messages
Open Node
How do you enable a generic React component to receive multiple types in a prop? 15 messages
Open React
A spread argument must either have a tuple type or be passed to a rest parameter 3 messages
Open
Splatting function types 27 messages
Open
Mongoose NotConnectedError using tsed Framework 9 messages
Open
Smaller type assignable to wider type throwing error. (playground included) 9 messages
Resolved
Property does not exists on class that implements them from an interface 29 messages
Open
Import css into a variable 5 messages
Open
Need help with saving functions that use generics to an object 6 messages
Open
tsc generating esModule interop output even with esModuleInterop set to false 50 messages
Open Node
Getting error on calling "pre" function on UserSchema. 9 messages
Open Node
Need help with importing a json file 9 messages
Resolved Node
Simple method decorator type errors 2 messages
Resolved
Generic constraint infer type from argument 19 messages
Open
Its type 'ComponentType<SVGProps<SVGSVGElement>> | undefined' is not a valid JSX element type. 3 messages
Open React
Discriminating a Union using a String Literal 89 messages
Resolved
@types/node present in node_modules even if set in devDependencies 21 messages
Resolved
Type definitions for deeply nested object traversal. 2 messages
Open Node
Extracting and using a generic type alias from a hidden type 26 messages
Open React
How to type a decorator with still unknown args? 7 messages
Resolved
Using map and string[] together 6 messages
Resolved
How to create a union of literal type like `type Colors = 'blue' | 'red';` and string? 2 messages
Open
Variable type ends up being of type "never" and I don't really understand why. 23 messages
Resolved
Enum as type for object 9 messages
Resolved
How can i provide the return type for function 6 messages
Open
How to use dotenv variables in other subdirectories and modules? 2 messages
Open Node
req.query 5 messages
Open Node
TS says function lacks return type 40 messages
Resolved
Passing Client Object to "@auth" Package - unable to solve expert advice wanted / code injection? 89 messages
Open
Zod schema definition for enum that allows/ignores invalid enum values 36 messages
Open Node
Inferring object keys from within that object 16 messages
Resolved
'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different 3 messages
Open React
cannot use type `...${string}...` properly 17 messages
Resolved
Evobot error 31 messages
Open Node
Required filed in object 23 messages
Open
error : Left side of comma operator is unused and has no side effects. 9 messages
Resolved
Overloaded fn with Result return type? 11 messages
Open
Porting Python App to Typescript 19 messages
Open
Load a specific d.ts file in a simple browser and no TS project 29 messages
Open
"File '../index.d.ts' is not a module" errors after updating to TypeScript 5.1 10 messages
Open
How to define submodules in type declaration? 4 messages
Resolved
Access a type property without instantiating a variable? 5 messages
Open
How to pass a type to a generic method of an object within ReturnType? 26 messages
Open
Is array length infinite in TS? 13 messages
Resolved
Abstract keyword in conditional type 5 messages
Resolved
Module ms 6 messages
Resolved
Anymatch library 4 messages
Open
Keyof Object + any string 11 messages
Open
'KeyboardEvent<HTMLDivElement>' is not assignable to parameter of type 'KeyboardEvent' 14 messages
Open React