microsoft / tiny-calc

Tiny expression evaluator
MIT License
39 stars 9 forks source link

Datatypes #50

Closed jack-williams closed 4 years ago

jack-williams commented 4 years ago

This is a first cut at add data-types and an extensibility story.

The crux is that we have a set of traits that objects can implement that govern behavior. This allows an object to act like a dictionary, reference, number, error, etc.

Many of the unknown -> any changes are because of a TypeScript bug that is fixed in master and I'm waiting for it to trickle down.