My solutions for the Advent of TypeScript 2023 hosted by TypeHero.
English | 简体中文
Install dependencies:
npm install
# Or
yarn
# Or
pnpm install
This project uses Typroof to test TypeScript type definitions. It is a CLI tool similar to tsd, but use BDD-style assertions like in Jest or Vitest. It is also faster, more flexible and more lightweight than tsd, WYSIWYG, and you can even define your only assertion methods. See its documentation for more details.
After installing dependencies, you can run the following command to use Typroof to test type definitions:
npx typroof
# Or
npm run test-types
# Or
yarn test-types