@sharyn/actions
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

🌹 @sharyn/actions

Flux Standard Actions creator functions.

Installation

npm install --save @sharyn/actions
# or
yarn add @sharyn/actions

Usage

import { action, errorAction } from '@sharyn/actions'

action('hello', { name: 'Sven' }, 'nice') // { type: 'hello', payload: { name: 'Sven' }, meta: 'nice' }
errorAction('bye') // { error: true, type: 'bye' }

This package is part of Sharyn, a collection of utilities and helpers.

Readme

Keywords

none

Package Sidebar

Install

npm i @sharyn/actions

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

3.53 kB

Total Files

6

Last publish

Collaborators

  • sharyn