help-typescript

11339 threads · Page 53 of 227

Quick Q: Pulling a dependency from a GitHub monorepo using Bun 42 messages
Open
Create a function called fizzBuzz(input) that prints to the console from 1 to input. However, when t 37 messages
Resolved
Best way to package code for reuse across several subprojects 18 messages
Open
Using constructor parameter type to infer types of other class methods 9 messages
Open Node
Unsure how to set up typing on object 7 messages
Open
Decorators : Retrieving Parent of a Class in Argument 18 messages
Open
Advanced generics: Extracting function type from nested keys? 156 messages
Open
ReferenceError: __dirname is not defined 3 messages
Open Node
Cannot use import statement outside a module 11 messages
Open Node
Type 'unknown' is not assignable to type 'T[keyof T] | undefined'. 10 messages
Open
Is it possible to detect that a class has a superclass? 3 messages
Open
why ts can't infer generic? 56 messages
Open
declarationDir and emit 15 messages
Open Tooling Node
Optional fields that never occur appearing on union return of constants 7 messages
Constructor Type 44 messages
Open
Why is Zod dropping these fields? 3 messages
Open
Why am I getting a "TypeError: this.selectedTimeSlot.getTime is not a function" 10 messages
Open
Get AST of something from an imported file 3 messages
Open
What's the type difference 4 messages
Resolved
declaration file being ignored by consuming package 3 messages
Open
`export const X =...; export type X =...` If I import `X`, which one do I get? 9 messages
Open
Incorrect type narrowing when using callbacks to modify a value 53 messages
Open
How do I ES6-import an aliased package without typscript complaining? 31 messages
Open Node
(Advanced) Debugging type check issue triggered by pnpm's isolated node_modules 5 messages
Resolved
How to use dynamic import inside the npm package 59 messages
Open Node
One of function overloads 17 messages
Resolved Tooling
Stream pipe, issue with type definitions 32 messages
Open
Issues with TypeScript and ECMAScript Module Compatibility in Node.js Environment 102 messages
Open Node
reduce return type does not fail typecheck even though key does note exit on type 2 messages
Open
Teaching Tommy Tom TypeScript 25 messages
Open
Controlling the type feedback on object literal vs function returning an object 4 messages
Resolved
`fs.exists` magically disappears 20 messages
Resolved
Imported function doesn't have the correct types 16 messages
Resolved
Recursive zod schema 7 messages
Resolved
type guard not working 21 messages
Resolved
How to get `exactOptionalPropertyTypes` to play nicely with object literals? 21 messages
Open
Stuck on how to create a variable I'll Type later. 33 messages
Resolved
how am i supposed to export a complex type from a file 2 messages
Open
Type will not get referenced with inline argument definition 71 messages
Resolved
Explicit type annotation Error when using an assert Function 3 messages
Open
How can I test my function without the `any` keyword? 5 messages
Resolved
Union from object values 7 messages
Open
How to handle unknown number of generics 39 messages
Open
How to make a property unavailable unless another property is present 6 messages
Open Node
Cannot import module into .ts file 215 messages
Open
Codemod or `tsc` flag to emit declaration files with explicit return types (--isolatedDeclarations) 10 messages
Open
infer boolean 21 messages
Resolved
How to ensure nested object's properties match their types with siblings. 6 messages
Resolved
Issue with Recursive Type Transformation using Generic Types 3 messages
Open
`T extends Record<string, unknown>` does not narrow `keyof T` down to string 2 messages
Open