1.3.2 • Published 6 years ago

handle-data-change v1.3.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

handle-data-change

npm version Conventional Commits code style: prettier

Handle data change.

  • Great Typescript support.
  • Meant to be used with React.

Usage

// index.ts
import HandleDataChange from "handle-data-change";

type Data = { foo: string; bar: number };

const handleChange = new HandleDataChange<Data>(
  { foo: "adsf", bar: 0 },
  data => {
    console.log(data);
  }
);

handleChange.change.bar(6);
handleChange.change.foo("hello world");
$ ts-node index.ts
{ foo: 'adsf', bar: 6 }
{ foo: 'hello world', bar: 6 }
1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago