@zaibot/fsa-saga
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

@zaibot/fsa-saga Coverage Status Build Status

Easy type checked Flux Standard Action for TypeScript

Installation

npm i -S @zaibot/fsa-saga

Usage

import { Action } from '@zaibot/fsa';
import { takeEvery } from '@zaibot/fsa-saga';

export const HELLO_WORLD = Action<{ message: string; }>('HELLO_WORLD');

function* rootSaga() {
    yield takeEvery(HELLO_WORLD, (action) => {
        console.log(action.payload.message);
    });
}

Package Sidebar

Install

npm i @zaibot/fsa-saga

Weekly Downloads

1

Version

0.1.2

License

MIT

Last publish

Collaborators

  • zaibot