A general-purpose TypeScript library providing utility types, runtime helpers, and testing matchers for projects using TypeScript ≥4.0. Current version 1.3.0, released April 2025; updates follow no strict cadence. Ships with full type declarations and includes peer dependencies on Jest utilities, making it a good fit for test suites that need extended matchers. Differentiator: first-class TypeScript support and integration with `jest-extended`, though its documentation is sparse.
npm install typescript-miscNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows usage of Timer, custom Jest matchers, and MappedOptional utility type.
Update imports to use the main package entry.
Remove the fourth argument or pass undefined.
Use import syntax or upgrade to Node 22.
Run: npm install @sinonjs/fake-timers
Install jest-extended: npm install jest-extended
Run 'npm install typescript-misc' and ensure tsconfig includes node_modules.
Change to: import { expect } from 'typescript-misc'.Use: import { Timer } from 'typescript-misc' (named export).