+*-/+*-/ abacus-ts +*-/+*-/
A simple calculator implemented by only TypeScript type operation.
import { Calc } from "abacus-ts";
type Answer = Calc<"(3+4-1)*2/2">;
const a: Answer = 6;
Try it with TypeScript Playground!
License
MIT
A simple calculator implemented by only TypeScript type operation.
import { Calc } from "abacus-ts";
type Answer = Calc<"(3+4-1)*2/2">;
const a: Answer = 6;
Try it with TypeScript Playground!
MIT
npm i abacus-ts
7
1.0.1
MIT
22.6 kB
8