This repository is my personal space for experimenting with complex types and generics in TypeScript.
- Turing-complete toy assembly interpreter, encoded in TypeScript string literals and "executed" at compile time: https://github.com/austintheriot/typescript-lab/blob/master/src/compilers/asm/Asm.test.ts
Brainf***
interpreter, again "executed" at compile time through TypeScript generics: https://github.com/austintheriot/typescript-lab/blob/master/src/compilers/brainflakes/Brainflakes.test.ts- Fibonacci sequence calculator, executed at the type-level during compile time: https://github.com/austintheriot/typescript-lab/blob/master/src/compilers/math/demos/Fibonacci.ts
- Auto-detecting API route response types via the url string provided: https://github.com/austintheriot/typescript-lab/blob/master/src/parsing/api/Showcase.ts
- Auto-inferring TypeScript types through a schema object: https://github.com/austintheriot/typescript-lab/blob/master/src/parsing/ParseSchema.ts
- Basic logic gates encoded in TypeScript generics: https://github.com/austintheriot/typescript-lab/blob/master/src/compilers/logic/gates.ts