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

https://github.com/alcalzone/aot24

My Advent of Code '24 solutions in pure TypeScript types, no runtime
https://github.com/alcalzone/aot24

Last synced: 4 months ago
JSON representation

My Advent of Code '24 solutions in pure TypeScript types, no runtime

Awesome Lists containing this project

README

          

# Advent of Type '24

A selected set of the Advent of Code 2024 puzzles, solved purely in the TypeScript type system.
Solutions are provided as compile-time type errors.

## Day 07, part 1

**Run:** `npm run day07a` \
**Result:**
```
day07a/index.ts:1411:7 - error TS2322: Type '"We need the facts, Mike!"' is not
assignable to type '1708857123053'.
Solution: ^^^^^^^^^^^^^
```

## Day 07, part 2

**Run:** `npm run day07b` \
**Result:**
```
day07b/index.ts:1411:7 - error TS2322: Type '"We need the facts, Mike!"' is not
assignable to type '189207836795655'.
Solution: ^^^^^^^^^^^^^^^
```