@dgaa/store-subject
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

store-subject

Building

Run nx build store-subject to build the library.

Running unit tests

Run nx test store-subject to execute the unit tests via Jest.

Usage

import { StoreSubject } from '@dgaa/store-subject';

const storeSubject = new StoreSubject(1);

storeSubject.subscribe((currentValue) => {
  console.log(currentValue); // 1
);

storeSubject.next(2); // Will log 2

storeSubject.getValue(); // Will return 2

Package Sidebar

Install

npm i @dgaa/store-subject

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

3.3 kB

Total Files

8

Last publish

Collaborators

  • ahineya