https://github.com/snowflyt/aot-2024-solutions
My solutions for TypeHero’s Advent of Typescript 2024.
https://github.com/snowflyt/aot-2024-solutions
Last synced: 8 months ago
JSON representation
My solutions for TypeHero’s Advent of Typescript 2024.
- Host: GitHub
- URL: https://github.com/snowflyt/aot-2024-solutions
- Owner: Snowflyt
- License: mit
- Created: 2024-12-17T04:46:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-24T12:11:24.000Z (over 1 year ago)
- Last Synced: 2025-02-10T21:23:15.088Z (over 1 year ago)
- Language: TypeScript
- Size: 244 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AoT 2024 Solutions
My solutions for the [_Advent of TypeScript 2024_](https://www.adventofts.com/events/2024) hosted by [TypeHero](https://typehero.dev).
English | [简体中文](./README.zh-CN.md)
## Usage
Install dependencies:
```shell
npm install
```
All test cases of the challenges are migrated to the relevant test files in the `src` directory (`*.test.ts`). You can run the following command to test the solutions:
```shell
npm test
```
These test cases are originally written in [test-testing](https://github.com/MichiganTypeScript/type-testing) and migrated to [Typroof](https://github.com/Snowflyt/typroof).
Click to Learn More About Typroof
Typroof is a type testing tool with a CLI interface and BDD-style assertions. Like expect-type, it provides a WYSIWYG experience for compile-time tests. However, unlike expect-type, Typroof also allows testing behaviors that compile-time assertions can’t, such as checking if tuple labels are preserved or verifying JSDoc comments. It also offers a tsd-like CLI interface that’s faster, more flexible, and lighter than tsd.