Easy type checked Flux Standard Action for TypeScript
npm i -S @zaibot/fsa-saga
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);
});
}