https://github.com/kube/monolite
Statically-typed structural-sharing tree modifier
https://github.com/kube/monolite
immutable persistent-data-structure structural-sharing typescript
Last synced: 16 days ago
JSON representation
Statically-typed structural-sharing tree modifier
- Host: GitHub
- URL: https://github.com/kube/monolite
- Owner: kube
- Created: 2016-09-24T01:59:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T04:04:45.000Z (over 2 years ago)
- Last Synced: 2024-04-15T00:43:35.034Z (about 1 year ago)
- Topics: immutable, persistent-data-structure, structural-sharing, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/monolite
- Size: 966 KB
- Stars: 146
- Watchers: 7
- Forks: 6
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

![]()
Type-safe structural-sharing tree modifier.
![]()
## Install
```sh
yarn add monolite
```## TypeScript
The main motivation of this library is to preserve static-typing, type-inference and completion provided by TypeScript, which is not supported by Immutable.js when working on trees.
**Monolite** takes **Plain-Old JavaScript Objects** and returns **Plain-Old JavaScript Objects**. Accessors permit TypeScript to understand the types you're dealing with and to provide completion and linting as if you were working directly on these objects.