0.2.1 • Published 6 years ago
burk v0.2.1
Burk
Union types in JS
Some similar packages are https://github.com/fantasyland/daggy and https://github.com/paldepind/union-type.
Why did I create this?
We used both daggy and union-type at work and had problems with serializing the types and saving them in local storage. This package only uses plain js objects that can easily be serialized and instead of adding methods to the prototype it's only using pure functions.
Usage
Have a look inside `src/example.js`