handle-data-change

Handle data change

Package no longer maintained.
Last updated 3 years ago by theiades .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install handle-data-change 
SYNC missed versions from official npm registry.

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 }

Current Tags

  • 1.3.2                                ...           latest (3 years ago)

7 Versions

  • 1.3.2 [deprecated]           ...           3 years ago
  • 1.3.1 [deprecated]           ...           3 years ago
  • 1.3.0 [deprecated]           ...           3 years ago
  • 1.2.0 [deprecated]           ...           3 years ago
  • 1.1.0 [deprecated]           ...           3 years ago
  • 1.0.1 [deprecated]           ...           3 years ago
  • 1.0.0 [deprecated]           ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (10)
Dependents (1)

Copyright 2014 - 2021 © npmmirror.com |