help-typescript

11339 threads · Page 220 of 227

Get the next item in an array based on a given key 15 messages
Resolved
How do you get ESLint to load a local TypeScript plugin? 43 messages
Open
Getting the type of a generic 43 messages
Open
Convert unicode color into react text and render the color as how it shows in console 6 messages
Resolved React
union space rule 4 messages
Resolved
Pulling the Type of a static class property from a union of classes 52 messages
Resolved
Type gets widened when passed to a generic function in a specific case 10 messages
Open
flatMap allowed/used in ES5 5 messages
Resolved
How to exclude types from the suggestion if already existed? 14 messages
Resolved React
Importing `main` vs `browser` (the entry points in an npm config) 40 messages
Resolved
Missing property error shows up in VS Code but not in `npx tsc --noEmit` 16 messages
Resolved
`require is not defined` 77 messages
Open
Need help with getStaticPaths for blog 2 messages
Open React
Typescript allows code that should IMO be rejected 35 messages
Open
How to access a global JS variable 2 messages
Open
Generic extends infer loses original type 8 messages
Resolved
How to structure code? 13 messages
Open
How to change return type of function based on boolean value of passed in opts object? 42 messages
Open
Dependent types in interfaces 94 messages
Open
Exporting d.ts file to dist with `tsc` 2 messages
Open
TS6305 error: using project references with two tsconfig.json; error on 'import' statements 2 messages
Resolved
I have this code 8 messages
Open React
How to to check if generic T is a specific number enum and not just any number 31 messages
Resolved
How to Make this Type-safe? 20 messages
Open Angular
Specific case of generic union with conditional types doesn't work well 77 messages
Resolved
dotenv not available in other files 52 messages
Open
Enforcing two objects in interface have the same arbitrary keys 68 messages
How do I test for an empty tuple in a conditional type 5 messages
Open
new Date() doesn't make sense?? 23 messages
Open
Create a single interface with conditional? properties 4 messages
Open
Create an interface with types that depend on other properties? 3 messages
Resolved
tsc --build 14 messages
Resolved
Dynamic return types for functions. 5 messages
Vue Resolved
Type narrowing a variable property name 31 messages
Resolved
Custom types 8 messages
Resolved
How to create a generic type from a type with OR (|) 5 messages
Resolved
are these equivalent 7 messages
Open
How to properly type arguments with spread operator? 72 messages
Resolved
Getting react tsc errors when I'm not even writing react 7 messages
Resolved
Conditional Interface not working as expected 62 messages
Resolved
Node 14 failing in CI due to typings 10 messages
Resolved
Parameter Type with generic without any 13 messages
Open Tooling
More pain with keyof-generics 91 messages
Resolved
Converting a JavaScript package to TypeScript package? 111 messages
Open React Node
TypeError Cannot read properties of undefined (reading '0') 26 messages
Open Angular Node
Why doesn't auto-import work out of the box with `paths` from tsconfig? 52 messages
Open
why is array access safe? 30 messages
Open
Argument of type 'void' is not assignable to parameter of type '(() => void) | undefined' 2 messages
Open
Mapped type where values are based on the corresponding keys 7 messages
Open
TSC Does not compile 2 folders 16 messages
Open Node