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
- Host: GitHub
- URL: https://github.com/alcalzone/aot24
- Owner: AlCalzone
- Created: 2024-12-10T12:27:08.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-11T20:32:21.000Z (over 1 year ago)
- Last Synced: 2025-04-14T23:05:13.927Z (about 1 year ago)
- Language: TypeScript
- Size: 29.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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: ^^^^^^^^^^^^^^^
```