help-typescript

11339 threads · Page 142 of 227

Type guard but use as a generic resolver? (If that makes sense) 7 messages
Open
ERR_UNSUPPORTED_DIR_IMPORT — how do I configure TypeScript and Node in 2023 so this doesn't happen? 63 messages
Open Tooling Node
spread operator 5 messages
Open React
help on error ts2339 - union type 46 messages
Open
How to set type for ...rest function params based on first param passed 8 messages
Open React Node
type checking totally not working when enter wrong type 10 messages
Resolved
How to use conditional types on properties 43 messages
Resolved
Resolve Promise<> type from ReturnType type helper. 4 messages
Open Node
SyntaxError: Cannot use import statement outside a module 48 messages
Open Node
FormData crashes on base54 field 22 messages
Open React
indexed access type using a parameter value 18 messages
Resolved
Are enums actually bad? 15 messages
Open
Add method in class only if generic equals something 11 messages
Resolved Node
Transpiling Typescript to Javascript 10 messages
Open
How can I make these TypeScript types support arrays? 8 messages
Open
Making an event that emits an Enum 2 messages
Open Node
abstracting typescript functions to a separate file 82 messages
Resolved
Define an object type that has at least a certain property 7 messages
Open
Generating types out of a mutable type with "as const" 17 messages
Vue Resolved
How do I get VS code to recognize my local declaration file? 179 messages
Open
Only allow keys to the function that have a specific value from the init object 6 messages
Open
Create a type for an object with dynamic key names but specific type for value 5 messages
Open
Why I have error in overriding method? I use type with generic 11 messages
Resolved
why type definitions 'Client' 'WindowClient' doesn't exist? 8 messages
Open
Getting a union of object keys depending on a property in those keys existing 7 messages
Resolved Node
tsc --noEmit in monorepo errors on local dependencies regardless of skipLibCheck & include 23 messages
Open
Function that takes a mixed type array and returns a derived array, also of mixed types 9 messages
Resolved
lazy produces TypeScript error: JSX element type 'Component' does not have any construct or call sig 12 messages
Open React
How to discriminate a union using a undefined/function field instead of string field 7 messages
Resolved
Using a JS library in a TS project 53 messages
Open
Defining nested object 41 messages
Open
How do I count the number of indexes in this table? 85 messages
Open
.filter type inference 12 messages
Resolved
Limitation of type system with unions and generics? 9 messages
Resolved
Union Type of function can not be properly inferred 29 messages
Open Node
An object with a property named "sort" confuses Typescript 26 messages
Open
Type data lost when defining `export type SequenceID = number;` 6 messages
Resolved
Dependent inferred type issue 10 messages
Open
Using a combination of typescript components with non-typescript components 8 messages
Resolved React
Argument of type 'string | UnionInterfaces' is not assignable to parameter of type 'UnionInterfaces' 9 messages
Open Tooling
How can I prevent .json file from being updated on build? 44 messages
Open Node
Change variable type after import 9 messages
Resolved
Is it possible to add a default value to the level property? 16 messages
Resolved
How to type-safe a utility cache class? 20 messages
Resolved
"File is not under rootDir" despite extended tsconfig.json containing rootDir 41 messages
Resolved
Getting the stdout response from a child_process 23 messages
Resolved Node
expected ":" where it is not expected 16 messages
Resolved
Can't figure out example from TS Handbook 9 messages
Resolved
Problems with declaring type correctly 37 messages
Open Node
Should I have a file that my node.js programs needs in the 'build' folder? 10 messages
Open