https://github.com/snowflyt/aot-2023-solutions
My solutions for the Advent of TypeScript 2023 hosted by TypeHero.
https://github.com/snowflyt/aot-2023-solutions
Last synced: about 2 months ago
JSON representation
My solutions for the Advent of TypeScript 2023 hosted by TypeHero.
- Host: GitHub
- URL: https://github.com/snowflyt/aot-2023-solutions
- Owner: Snowflyt
- License: mit
- Created: 2023-12-25T16:20:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-16T11:26:30.000Z (over 2 years ago)
- Last Synced: 2025-01-10T04:19:48.314Z (over 1 year ago)
- Language: TypeScript
- Size: 104 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AOT-2023 Solutions
My solutions for the [_Advent of TypeScript 2023_](https://typehero.dev/aot-2023) hosted by [TypeHero](https://typehero.dev).
English | [简体中文](./README.zh-CN.md)
## Usage
Install dependencies:
```shell
npm install
# Or
yarn
# Or
pnpm install
```
This project uses [Typroof](https://github.com/Snowfly-T/typroof) to test TypeScript type definitions. It is a CLI tool similar to [tsd](https://github.com/tsdjs/tsd), but use BDD-style assertions like in [Jest](https://jestjs.io/) or [Vitest](https://vitest.dev/). It is also faster, more flexible and more lightweight than tsd, WYSIWYG, and you can even define your only assertion methods. See [its documentation](https://github.com/Snowfly-T/typroof?tab=readme-ov-file) for more details.
After installing dependencies, you can run the following command to use Typroof to test type definitions:
```shell
npx typroof
# Or
npm run test-types
# Or
yarn test-types
```