https://github.com/sony/typescript-fsa-redux-middleware
Fluent syntax for defining typesafe Redux vanilla middlewares on top of typescript-fsa.
https://github.com/sony/typescript-fsa-redux-middleware
Last synced: 6 months ago
JSON representation
Fluent syntax for defining typesafe Redux vanilla middlewares on top of typescript-fsa.
- Host: GitHub
- URL: https://github.com/sony/typescript-fsa-redux-middleware
- Owner: sony
- License: mit
- Created: 2019-01-29T02:06:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-24T02:36:38.000Z (over 5 years ago)
- Last Synced: 2025-03-29T08:04:30.906Z (6 months ago)
- Language: TypeScript
- Homepage:
- Size: 44.9 KB
- Stars: 10
- Watchers: 19
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TypeScript FSA Redux Middleware
Fluent syntax for defining typesafe Redux vanilla middlewares on top of [typescript-fsa](https://github.com/aikoven/typescript-fsa).
This library is inspired by [typescript-fsa-reducers](https://github.com/dphilipson/typescript-fsa-reducers).
# Introduction
The major usage of this library is as look like this:
```
import {middleware} from 'typescript-fsa-redux-middleware';const middleware = middleware()
.case(fetchSomething.done, (api, next, action) => {
// Do followup manipulation of the API access
}).case(fetchSomething.failed, (api, next, action) => {
// Do error handling
})
```# Sample Application
Let you check sample application on [sample/](./sample/) folder.# License
MIT# Copyright
Copyright (c) 2018-2019 Sony Corporation.