help-typescript

11339 threads · Page 79 of 227

Is there a way to narrow overloaded function argument types 10 messages
Open Node
Unexpected undefined 10 messages
Open Tooling Node
How to narrow type to `Express.User` after `isAuthenticated` middleware? 9 messages
Resolved Node
Administrator Permission Comands Showing 2 messages
Open Node
Object literal may only specify known properties, and 'valueConfig' does not exist in type 6 messages
Open React
Why does this generic function work? 7 messages
Open
Type inference within functions 21 messages
Open
How to simplify nested extends clauses? 18 messages
Resolved
Importing a Module with `index.ts`-File with `NodeNext` Module Resolution 11 messages
Resolved Node
Problem with discord.js + Mongoose Schemas 3 messages
Open Node
How to represent this type 25 messages
Open
Remove properties from mapped type 29 messages
Resolved
How to make this behavior at the type level? 7 messages
Open
infer on unions vs variants 6 messages
Resolved
How to import CommonJS module with class inside namespace 3 messages
Open Node
Filtering with JSON 66 messages
Open
How to declare type that extends a generic type? 5 messages
Resolved Node
`T | Promise<T>` is not inferred correctly 42 messages
Open
Why is ts narrowing differently if cast vs type set regularly 2 messages
Open
How to create a type that enforces exclusion of properties in typescript when using spread operator? 22 messages
Open
Extremely strange error. 17 messages
Open
Module not found when using Enum 16 messages
Open
Creating strictly typed generic validation handler 6 messages
Open
Infer Args in Component 7 messages
Open React
Static Method needs return Type of Extending class 70 messages
Resolved Node
Types and filter method 5 messages
Open
Object.defineProperty(exports, "__esModule",..); gets added unintentionally in compiled JS from TS. 130 messages
Open
Project References 14 messages
Resolved Tooling
Property 'customername' does not exist on type 'unknown'. 3 messages
Open
Why cant typescript narrow using a property that is optional 8 messages
Open
Add strict types to function 17 messages
Open
TypeScript Compilation Error 39 messages
Open Tooling
when to use "as" ? Any resources for good patterns? 21 messages
Open React
Deep Partial/Pick/Pluck 2 messages
Resolved
function multiple return types differenctiation 16 messages
Resolved
Are these thes same ? runtime checks 17 messages
Open
Types for function wrapper that calls provided function only if every argument is not null 4 messages
Open
Uncaught SyntaxError: Unexpected token 'export' in Content Script in Typescript Chrome Extension 15 messages
Open
How to force TS to infer a generic type argument as a string literal type? 9 messages
Open
How to generate a key array from a type? 2 messages
Open
Narrow type inference on Map type 10 messages
Open
What is the correct way to type types for two possible type for a component. 6 messages
Open
Allow module augmentation for module that exposes facade via `const` 3 messages
Open Node
How to compare possibly-numeric types 12 messages
Open
Test if type is branded using generics 2 messages
Open
Heterogenous Enum. Does string enum still index numerically? 12 messages
Open
"An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled " for interface 4 messages
Open
tsconfig extends another config, rootDirs merged rather than overriden? 5 messages
Resolved
:rocket: Help Needed with TypeScript Module Errors(TS2306 & TS2305) :rocket: 14 messages
Open
basic question 13 messages
Resolved