help-typescript

11339 threads · Page 96 of 227

How can I narrow the type based on generics? 20 messages
Resolved
Prevent `boolean` From Expanding to `true | false` In Conditional Typing 47 messages
Open
How to get the ReturnType of a function with a generic parameter 6 messages
Open
function typing: generate interface with optional partial 45 messages
Open
Exported variable from file is undefined when compiled to NodeJS. 48 messages
Open
Sudden errors in project around NodeJS process object? 21 messages
Open Tooling Node
How to use discriminated union to suggest two or more options in vscode hints until one is choosen? 16 messages
Open
Some files do not get compiled 22 messages
Resolved Deno Node
Mapped type to extract parameters from callbacks 16 messages
Resolved
débutante 8 messages
Resolved
Typesafe api field response 5 messages
Resolved
Are declaration files supported for large JSON files? 4 messages
Resolved React Tooling
Why is filtering on an array inferring the type? 25 messages
Open
TYPESCRIPT ERROR IN VSC 20 messages
Open
Typescript sets function args as never 7 messages
Resolved
Using CommonJS module in ESM 2 messages
Open
How to type this so specific return doesn't complain from generic method? 6 messages
Resolved
Anyone have any experience adding .d.ts files to a JavaScript codebase just for Intellisense? 8 messages
Open
types X and X are not identical 9 messages
Open
Workaround for lack of partial specification of generic parameters 5 messages
Resolved
How to override the type of class method that inherits another class? 13 messages
Resolved
Module merging breaks existing module 17 messages
React Node
How to ensure that type if never? 2 messages
Resolved
Is it possible to type a generic array of tuple with each row its own type ? 19 messages
Open Node
I have a conceptual problem in my library build and I'm not sure what "correct" is 13 messages
Open Deno Node Tooling
How to invoke a method of a class from Record<> 10 messages
Open
Is there a way to get the compiler tor recognise the values in the object can't be undefined? 35 messages
Resolved Node
Any idea how I can fix this error or what it stems from? 3 messages
Resolved
Why is TS compiler resolving result of function with generics to never? 9 messages
Resolved
[External SyntaxError] Unable to import npm package into SvelteKit project 158 messages
Open
Interference between modules 2 messages
Open
get type of existing type's object's prop 2 messages
Open
colorProps only refers to a type, but is being used as a value here. 5 messages
Open React
How to infer a simple function return ? 10 messages
Open
Loosening type with generic `extends` 6 messages
Resolved
Why doesn’t the compiler successfully resolve this discriminated union? 15 messages
Open
Why does React.FC<Props> not set the function's first argument type to Props? 7 messages
Resolved
What's the best way to check for an optional property in an object? 9 messages
Open
Is there a way in TS to check if a function parameter is optional? 36 messages
Open
I am a MERN stack developer 12 messages
Resolved
How to write guards for a generic type? 8 messages
Resolved
Why this code does not compile? 56 messages
Open
How to get return types of an array of functions in parameter? 9 messages
Open
Overload Interface Function Signature With `type` 16 messages
Resolved Node
Accessing an object variable, in a js file outside rootDir 6 messages
Open Node
Resolving type -1 for -(1) 19 messages
Resolved
How to define specific return type for known args? 20 messages
Resolved
Associating return type to input function type 4 messages
Open
Destructuring parameter with | 19 messages
Open
print typescript warnings to console on compile 17 messages
Open