help-typescript

11339 threads · Page 205 of 227

Access nuxtConfig/.env file in a .ts file without dotenv 4 messages
Open Vue
Defining the type of second parameter of a function based on its first parameter 28 messages
Open Node
why it give me this error (Property 'map' does not exist on type 'string | string[]'. Property 'm) 9 messages
Open React
Issue with correlated unions 17 messages
Resolved
Argument of type 'string' is not assignable to parameter of type 'number | Date'. 19 messages
Resolved
Extending Union Types By Interface 8 messages
Resolved React
Help understanding a Type with a function inside 61 messages
Resolved
Async member function overload 9 messages
Resolved
give type to parsed csv array 6 messages
Resolved Node
Why does TS catch the below snippet as a Type Error? 48 messages
Open Node
Function with parameters for object method name and arguments 7 messages
Resolved
How to dynamically create an instance of a nested type/object? 52 messages
Open React Node
Can I declare a type that is an array with specific types at specific positions? 56 messages
Resolved
With generics, can I specify only one by name? 41 messages
Resolved
how to make return type of function depend on arguments? 48 messages
Resolved
Transpiler error 10 messages
Resolved
Generic parameter with autocomplete 18 messages
Resolved
Enums, Types and Interfaces in *.d.ts files 42 messages
Resolved Node
Transforming object to class instance while preserving the types 60 messages
Resolved
Type augmentation of library with default export 20 messages
Resolved
Module resolution issue that is 'fixed' by appending '.js' 7 messages
Resolved
tsc enum compiler bug 28 messages
Resolved
How to type a function that receives a zod schema? 10 messages
Resolved Node
Reverse inference on object passed to class 150 messages
Open
isolatedModules not working? 3 messages
Open
Niche use case of function overloading 19 messages
Open
Extract type where it has a specified key 5 messages
Resolved
Conditonal type (how to check for a var inside) 15 messages
Resolved
How to map from JSON. Getting a JSON.parse Error 29 messages
Open Node
Errors when constructing class based on variables 19 messages
Resolved
Why .d.ts file is not copied by tsc? 16 messages
Open
How to change component based on prop with typesafety? 3 messages
Open
TS2538: Type 'undefined' cannot be used as an index type. 9 messages
Open
Recursively make all fields of a type required (NonNullable not working) 10 messages
Open
generate type 25 messages
Resolved
Error in GitHub Actions: 'vitest' module not recognized 3 messages
Open
Showing as method rather than property 5 messages
Open
Why implicit any is not always an error? 5 messages
Open Deno
enum object literals 3 messages
Open
Return type not assignable to Record 31 messages
Open
Distributive object type infers union rather than specific value 137 messages
Resolved
Enum member not inferred from class property 40 messages
Resolved
Infer union member on generic property access 67 messages
Resolved
How to type dynamic imports 4 messages
Resolved
How to perform Math operations on snowflake: 18 messages
Resolved Node
Using paths & extends together 11 messages
Resolved
How do I tell TS without explicitly typing the return type of a function it's an array of A and/or B 35 messages
Open
Projects must list all files or use an 'include' pattern. 5 messages
Open React Tooling
packaging module declarations 4 messages
Resolved
Varying method signatures based on type of argument passed to method or constructor 22 messages
Resolved