help-typescript

11339 threads · Page 181 of 227

How to type a key to indicate that it must point to a value of a specific type? 2 messages
Open
Why does this ParseInt2 type have no errors? 94 messages
Open
Is it possible to import JUST an enum from another project? 7 messages
Open
Type narrowing inside named vs anonymous function 5 messages
Resolved
Why can I "infer A" twice but pass in unrelated types for each? 24 messages
Open
How do I declare mutually exclusive properties for function params? 12 messages
Open
[API] Can I get the type aliases / interfaces that make up a type? 3 messages
Open Tooling
Type to get nested properties as string is `possibly infinite`, how can I write this code better? 5 messages
Open
A library expects me to "merge" its type with my own declarations. Is this idiomatic? 9 messages
Open
Route loading not working in TypeScript 6 messages
Resolved Node
Dynamic typing `|` problem 46 messages
Open Node
Can I remove any of these `as any` type assertions? 27 messages
Resolved
:| 6 messages
Resolved
What's the trick for making TS keyof work with unions? 3 messages
Open
subpath exports for package in monorepo 20 messages
Resolved Node
Optional type parameters for interfaces? 8 messages
Open
How to import custom type from component to .vue page (Vue 2) 3 messages
Open Vue
convert a string[] to string[] as const 6 messages
Resolved
How to get type that is inside of angle brackets? 14 messages
Open
[expressJs, repository pattern] Alternative to instantiate a class every invoking function 5 messages
Open Node
what's the meaning of `declare const WebhookDefinitions: WebhookDefinition[];`? 5 messages
Open
Dynamic Type of param foo based on param bar but foo is a class 34 messages
Resolved Node
Maintaining `.d.ts` Files Alongside `.js` Files 43 messages
Resolved Node
deconstruct props type? 2 messages
Open
Type narrowing not working on "complex" union types? 6 messages
Resolved
Remove key from interface when .... 4 messages
Resolved Node
Create a union from object values in an array? 27 messages
Resolved
Export class's interface, not class's runtime value 5 messages
Open
Function props with 2 options. Union types maybe? 5 messages
Resolved
Dynamic record field access 2 messages
Open
Dynamic typing for generic object properties 2 messages
Resolved
Ambient declaration file not throwing error 17 messages
Open
Collect values of nested object as a union of strings 8 messages
Open
Discord.js upgrade - confused with type checking 2 messages
Open Node
Merge definition files 2 messages
Open
Cannot find namespace 'NodeJS' & Timeout' is not assignable to type 'number' 2 messages
Resolved
How to infer property name from generic type passed 12 messages
Open Node
Any difference between user-defined type guards and `as` assertion? 12 messages
Open
Is there a way to run typescript code as a command without globally installing it? 9 messages
Resolved
Typescript fold functions for union type 4 messages
Open
Mapped types issue 11 messages
Resolved
Record Inference 8 messages
Open
Hey. Can someone help me with this error? 17 messages
Open React Tooling
Advice on preventing calling functions without the correct this context? 7 messages
Resolved Tooling
Hi i wanted to host my discord bot on vps and i got this error 4 messages
Resolved
Exclude declaration merging 3 messages
Open
A solution to `Index signature for type 'string' is missing in type` 11 messages
Resolved
React Native passing variable to style type issue 20 messages
Open
How do I create generic methods in an object in TypeScript? 6 messages
Resolved
Generic Type for a reusable component; is any an acceptable usage here? 12 messages
Resolved