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