https://github.com/zaibot/fsa-saga
Easy type checked Flux Standard Action for redux-saga in TypeScript
https://github.com/zaibot/fsa-saga
fsa redux redux-saga typescript
Last synced: 3 months ago
JSON representation
Easy type checked Flux Standard Action for redux-saga in TypeScript
- Host: GitHub
- URL: https://github.com/zaibot/fsa-saga
- Owner: Zaibot
- License: mit
- Created: 2017-08-24T11:27:44.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-25T03:12:19.000Z (over 6 years ago)
- Last Synced: 2025-02-11T17:48:20.020Z (4 months ago)
- Topics: fsa, redux, redux-saga, typescript
- Language: TypeScript
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @zaibot/fsa-saga [](https://coveralls.io/github/Zaibot/fsa-saga?branch=master) [](https://travis-ci.org/Zaibot/fsa-saga)
Easy type checked Flux Standard Action for TypeScript
## Installation
```sh
npm i -S @zaibot/fsa-saga
```## Usage
```ts
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);
});
}
```