Skip to content

Commit

Permalink
minor flow fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rpominov committed Oct 1, 2016
1 parent 96f97f9 commit 85d3e27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ const defaultFailureHandler: Handler<mixed> = failure => {
}
const noop = () => {}

type RunHelperBody<S, F> = (s: Handler<S>, f: Handler<F>, c?: Handler<any>) => {|
type RunHelperBody<S, F> = (s: Handler<S>, f: Handler<F>, c?: Handler<any>) => {
onCancel?: Cancel, // called only when user cancels
onClose?: Cancel, // called when user cancels plus when succ/fail/catch are called
|}
}
const runHelper = <S, F>(body: RunHelperBody<S, F>, handlers: Handlers<S, F>): Cancel => {
let {success, failure, catch: catch_} = handlers
let onCancel = noop
Expand Down

0 comments on commit 85d3e27

Please sign in to comment.