Comments (1)
今更だけどちょっと (かなり) 違ってますね。
steps()
はただの actionCreator なので戻り値の型は Promise
ではなくただの Object
です。
Promise
になる (かもしれない) のは store.dispatch(steps(...))
の戻り値。
つーか redux-effects-steps の README からして間違ってますね。。。 そっちは修正しておきます。
MaybePromise
が出てくるのは redux-effects-steps のミドルウェアの中で、 steps()
の残りの引数はやっぱり単なる action や actionCreator です。
まとめるとこんな感じ (確かめてないので雰囲気だけ)。
declare module 'redux-effects-steps' {
declare type Action = Object;
declare type ActionCreator = any => Action;
declare type ActionOrCreator = Action | Array<Action> | ActionCreator | void;
declare function steps(
o: Action | Array<Action>,
...rest: Array<
[ActionOrCreator, ActionOrCreator]
| [ActionOrCreator]
| ActionOrCreator
>
): Action;
}
from redux-pluto.
Related Issues (20)
- An in-range update of webpack is breaking the build 🚨 HOT 1
- An in-range update of prettier is breaking the build 🚨 HOT 1
- An in-range update of eslint-plugin-import is breaking the build 🚨 HOT 3
- An in-range update of stylelint-config-recommended is breaking the build 🚨 HOT 1
- An in-range update of react-hot-loader is breaking the build 🚨 HOT 1
- An in-range update of workbox-webpack-plugin is breaking the build 🚨 HOT 1
- An in-range update of @types/joi is breaking the build 🚨 HOT 1
- An in-range update of @types/react-redux is breaking the build 🚨 HOT 1
- An in-range update of eslint-plugin-react is breaking the build 🚨 HOT 3
- An in-range update of prettier is breaking the build 🚨 HOT 3
- An in-range update of redux-form is breaking the build 🚨 HOT 3
- An in-range update of styled-components is breaking the build 🚨 HOT 1
- An in-range update of prettier is breaking the build 🚨 HOT 4
- An in-range update of @typescript-eslint/eslint-plugin is breaking the build 🚨 HOT 4
- An in-range update of @typescript-eslint/parser is breaking the build 🚨 HOT 4
- An in-range update of webpack is breaking the build 🚨 HOT 19
- An in-range update of @types/express is breaking the build 🚨 HOT 2
- An in-range update of prettier is breaking the build 🚨 HOT 2
- An in-range update of eslint-plugin-react is breaking the build 🚨 HOT 2
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redux-pluto.