invariance
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

invariance

Node CI npm

Utils for immutable data structures Records & Tuples

APIs

  • toImmutable()

Deeply convert regular objects, arrays and JSON objects to Records or Tuples.

  • JSON.parseImmutable()

Interfaces

  • DeepReadonly<T>
  • Record
  • Tuple

TODO

  • [ ] Add Types from Spec
  • [ ] Implement polyfill for JSON.parseImmutable

Package Sidebar

Install

npm i invariance

Weekly Downloads

14

Version

0.0.2

License

MIT

Unpacked Size

19 kB

Total Files

23

Last publish

Collaborators

  • unadlib