Skip to content

Calculator implemented by only TypeScript type operation

License

Notifications You must be signed in to change notification settings

Quramy/abacus-ts

Repository files navigation

+*-/+*-/ 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;

capture

Try it with TypeScript Playground!

License

MIT

About

Calculator implemented by only TypeScript type operation

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published