Skip to content

Easy type checked Flux Standard Action for redux-saga in TypeScript

License

Notifications You must be signed in to change notification settings

Zaibot/fsa-saga

Repository files navigation

@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);
    });
}

About

Easy type checked Flux Standard Action for redux-saga in TypeScript

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published