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

1.0.3 • Public • Published

value-accessor

test: passed license: MIT

Table of Contents

Usage

A Value accessor

import { ValueAccessor } from "value-accessor";

const store = new ValueAccessor<number>();

if (store.hasValue) console.log(store.value);
// nothing

store.value = 42;

if (store.hasValue) console.log(store.value);
// log: 42

Readme

Keywords

Package Sidebar

Install

npm i value-accessor

Weekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

3.78 kB

Total Files

7

Last publish

Collaborators

  • paveldymkov