This package has been deprecated

Author message:

Package no longer maintained.

handle-data-change
TypeScript icon, indicating that this package has built-in type declarations

1.3.2 • Public • Published

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 }

Readme

Keywords

Package Sidebar

Install

npm i handle-data-change

Weekly Downloads

0

Version

1.3.2

License

MIT

Unpacked Size

7.09 kB

Total Files

8

Last publish

Collaborators

  • danielpanpm