help-typescript

11339 threads · Page 74 of 227

I'm creating a library with my custom MUI components. But it gives an error after installing 3 messages
Open React Node
error TS6053: File '@tsconfig/node18/tsconfig.json' not found. 7 messages
Open Tooling Node
Narrowing a generic tuple based on a discriminating entry 16 messages
Resolved
How to use recursive generic types ? 61 messages
Open
Is it possible to use the generic type from an abstract class in a static method? 48 messages
Resolved
Typescript "implements"? 16 messages
Resolved React Node
Using ESM and node import paths with Typescript failing [ERR_MODULE_NOT_FOUND] 137 messages
Open Node
tsserver getSemanticDiagnostics always return global diagnostics with no associated locat 11 messages
Open
How to get typescript to be more specific in string interpolation over a union 8 messages
Open
Object literal that has two functions that share an implementation? 7 messages
Resolved
Need help with a typescript and html project. 2 messages
Open
red underlines 7 messages
Resolved
When I tsc build I see computed types are having their results output instead, how to prevent that? 12 messages
Open
Optional const type parameter 12 messages
Resolved
Why the following code compiles? 80 messages
Open
Implementing tsParticles in a vanilla TypeScript project (Vite) 36 messages
Open
`([A]&[B])[0]` and `([A]&[B]) extends [infer T] ? T : 0` results differently 23 messages
Open
Issues while compiling 31 messages
Open
import equals with generics 10 messages
Resolved
Function that returns a tuple type from array of keys 62 messages
Resolved
Help with Typing Custom Code Component in React Markdown 9 messages
Resolved React
"TypeError: NetworkError when attempting to fetch resource." when using fetch 6 messages
Open Node
Make (once optional) property required based on value of another 13 messages
Open Node
Creating a new object type from a deeply nested object not recognizing keyof types 10 messages
Resolved Tooling Node
How to enforce an array to have all keys of a generic type? 10 messages
Open
Optional keys required or omitted completely 7 messages
Open
Type narrow `string[]` to `[string, ...string[]]` without user-defined type-guard? 14 messages
Open
Export namespace contributed to from multiple files 33 messages
Open
'channelId' does not exist in type `{ ..., channelId: string | ... }` 4 messages
Resolved Node
how can i let an component know a different func where it needs to work with? 107 messages
Open Angular
Use Either options from 2 interface? 40 messages
Resolved
interacting with the tsserver 2 messages
Open
New to generic types, wondering if I'm close to getting this mapping to work 14 messages
Open
Error: ForkTsCheckerWebpackPlugin... configuration... does not match the API schema... 3 messages
Open Vue Tooling Node
i am very confused... (splitting array) 18 messages
Open Node
Are refs cleaned after a component unmounts? 6 messages
Open Vue
What do the angular brackets in this code mean? 2 messages
Open React Node
Generic type inference not working as expected when inferred through function return. 15 messages
Open
checking if a property available on an object 6 messages
Resolved
Distributed template literal 49 messages
Resolved
infer undefined types as `never` 25 messages
Open Deno Node
Upgrading @types/react from 18.2.75 to 18.3.0 breaks everything 9 messages
Open
"unknown" showing up in type mapping where not expected 10 messages
Resolved Deno
Why aren't type checks kept inside Array.find? 5 messages
Resolved
No error that variable is uninitialized in callback? 8 messages
Open
Force distributive conditional type 10 messages
Resolved
What's the correct "moduleResolution" to use with "module: es2022"? 21 messages
Resolved
ESM issues with @bugsnag/js 18 messages
Open Node
Function circular reference causes return type 'any' 13 messages
Open
Type 'keyof T' cannot be used to index type 8 messages
Resolved