help-typescript

11339 threads · Page 127 of 227

Help with infering a zod type based on the schema within a function 5 messages
Open
Help with converting class object to class name 25 messages
Open Tooling
Optional generic type parameter 7 messages
Open
Help needed making a type 45 messages
Resolved React
[Type Inference] Utility function for bidirectional conversions of object types 2 messages
Open
PNPM Monorepo dependencies do not resolve when running `tsc` 5 messages
Open Tooling Node
How do I type Symbols used as indexation? 14 messages
Open
IIFE returns `foo: typeof Bar`. `Bar` is a class name. `const baz: ??? = new foo()`? 6 messages
Resolved
Why do interface functions have to name their destructured arguments but const variables don't? 23 messages
Open
What is the correct default for a unconstrained generic? 95 messages
Open
A Record type from a const array of functions 4 messages
Resolved
How to use setTimeout? 22 messages
Resolved
Returned type of property from object is incorrect 3 messages
Open
One more 101th time: interface to object conversion 25 messages
Open
How to import the `default` type in JS? 8 messages
Open
Type-checking a prop's key with another prop value 3 messages
Open React
Discriminated union not working the way I expect, specifically in React 6 messages
Resolved React
Static Property with Polymorphic Type? 3 messages
Open
enum undefined 33 messages
Open
Narrowing params using distributive conditional type 6 messages
Open
Item does not exist on type, however it is defined 5 messages
Open
Inferring one type from another in an object 4 messages
Open React
extends behaves unexpectedly 20 messages
Resolved
Infer property types in mapped types 2 messages
Resolved
Typescript returning a union of Record and Array<Record> when I already narrowed it? 14 messages
Resolved Node
`[key, value]: [type, type]` issue 6 messages
Open
Incorrect types on Array.concat 5 messages
Open
type of event 13 messages
Open
Calling function by their name. 2 messages
Open
Type parameter narrowing based on value of other type parameter 6 messages
Resolved
How do I create a `import { x } from 'mypackage/abc'`? 19 messages
Open
What is the recommended ES or Node version to specify for the 'module' option? 6 messages
Resolved
Copy all all non-zero/non-empty string key/values into a new object 8 messages
Open
How to make a property's type depend on the *value* of another property in the same object? 6 messages
Open
How to reference inner optional type? 9 messages
Open
help understanding generics? 5 messages
Open
Higher-order type arguments? 12 messages
Open
Why does my conditional return type always have undefined or unknown values? 60 messages
Resolved
How do I use the satisfies operator to ensure that a record has all of the keys of an enum? 5 messages
Resolved
Create a command code 9 messages
Open
How do I develop an API layer? How do I develop two packages simultaneously? 7 messages
Open Tooling Node
Build type from array 5 messages
Resolved
Generically defining a class's function's parameter based on declarative typing? 38 messages
Resolved Node
SyntaxError: Unexpected token ":" 5 messages
Resolved
VSCode auto import working incorrectly with monorepo in SSH only 5 messages
Resolved Tooling Node
Best practices for a singleton service class to inject? 9 messages
Resolved Node
Type Union with interfaces: Differentiate between the interfaces 5 messages
Open
Subtyping string to access record 50 messages
Resolved
Alter an array of strings 5 messages
Resolved
Why are expando properties errors by default? 6 messages
Open