0.0.1 • Published 6 years ago
@thecodeaware/ts-async-memoizer v0.0.1
Typescript Async Memoizer
Memoizer for async functions (Rxjs Observable)
Installation
npm install --save @thecodeaware/ts-async-memoizer
Usage
import { MemoizeObservable } from '@thecodeaware/ts-async-memoizer';
@MemoizeObservable()
function someFunction(arg1: string, arg2: SomeObject): Observable<OtherObject> {
// ...
}
Contribution
Feel free to add improvements. Remember about the tests!
npm install
npm run test
TODO
- improve doc
- add memoizer for Promise
License
This project is licensed under the terms of the MIT license - check LICENSE file.
0.0.1
6 years ago