Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@sharyn/actions

sharynjs11MIT1.0.0TypeScript support: included

Flux Standard Actions creator functions.

readme

🌹 @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.