help-typescript

11339 threads · Page 33 of 227

Casting number | object to custom type 6 messages
Open Node
Any way to type some imports from certain packages as any? 9 messages
Open
Questions on Array inference discontinuities (JSDoc in .js) 22 messages
Open
Check if object is a record. 3 messages
Open
Intersection of const array (`[...] as const`)? 4 messages
Resolved
Generics | "could be instantiated with a different subtype of constraint ..." 22 messages
Resolved React
Type-level Set 5 messages
Resolved
'this' incorrectly incorrectly typed as '{}' in getter, even though hovering shows correct type 2 messages
Open
❗Ternary condition lose type narrowing when `strictNullChecks:true` 27 messages
Resolved
Build Express on Monorepo structure 14 messages
Open React Node
Module can only be used with a default import when using the 'esModuleInterop' flag 4 messages
Open
Monorepo - tsc for typechecking only 6 messages
Open Tooling
Deduce the type of decorated property 3 messages
Open
compilerOptions.path overwrite 8 messages
Open Tooling
Help with Types for Optional Default Value 40 messages
Open
Can't infer keys type properly 21 messages
Resolved
Class Generic Set By Constructor Params 43 messages
Open Node
post request respond socket hang up 27 messages
Open Node
Conditionally say that keys exist 7 messages
Open Node
Why does typescript infer impossible permutations when iterating over a tuple? 18 messages
Resolved
Generate property names from string paths, with special handling for duplicate segments 4 messages
Open
Mapped Types preventing object from recognising it inherited itself 42 messages
Resolved
Type error when returning new class instance from concrete implementation of abstract class 7 messages
Resolved
In typescript, how do you define a map of keys to types that's also available at runtime? 29 messages
Resolved
Tuple Array 7 messages
Resolved
Express TS API 21 messages
Open Node
extract all properties of type T from {HTMLElement & T} 17 messages
Resolved
How to modify return type so it rips out untruthy types from array? 24 messages
Open
How to narrow a variable using a class 7 messages
Open Node
Transforming a record of type `Record<K, V>` into `Record<K, (V) => void>` 5 messages
Resolved
Implicit and explicit generics 5 messages
Open
Path alias inheritance not working when importing from submodule 9 messages
Resolved Node
How do I unit test my typescript code? 11 messages
Resolved
Uncaught ReferenceError: exports is not defined 188 messages
Resolved Node
❓Mysterious / Not override'able unknown 19 messages
Open
Assertions require every name in the call target to be declared with an explicit type annotation. 4 messages
Open
How to declare the type of arrow function component on React 15 6 messages
Open
Declare external namespace from `import types` 2 messages
Resolved
Css is global across all pages 6 messages
Open React
Property 'user' does not exist on type 8 messages
Open Node
Class implementing an interface, to have optional properties. 8 messages
Resolved
Looking for Developer 5 messages
Resolved React
Error [ERR_REQUIRE_ESM] 34 messages
Resolved Node
includes text in vertical lines 6 messages
Open Node
Treating boolean as a special type? 5 messages
Open
Function taking 2 parameters that can be 1 of 2 two types, but they must be the same type 11 messages
Open
Uncaught reference error 21 messages
Open
Debug vs production module load issue 9 messages
Open
Type 'HTMLAnchorElement' does not satisfy the constraint 'keyof HTMLElementDeprecatedTagNameMap' 2 messages
Open
TypeScript: How to Assign `Record<string, unknown>` to a Specific Interface? 9 messages
Open