An open API service indexing awesome lists of open source software.

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.

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.