Finally, you can do math in the TypeScript type system!
A lot of people wanted this: microsoft/TypeScript#26382 microsoft/TypeScript#15645 microsoft/TypeScript#15794
Works with numbers 0-50:
type eight = MyFirstCalculator<3, '+', 5>;
type fourteen = MyFirstCalculator<50, '-', 36>;
type hundred = MyFirstCalculator<10, '*', 10>;
type two = MyFirstCalculator<10, '/', 5>;
type willProbablyBreak = MyFirstCalculator<10, '/', 0>;
Inspired by https://github.com/AceLewis/my_first_calculator.py