Skip to content

Commit

Permalink
Add fail handler to typedef
Browse files Browse the repository at this point in the history
  • Loading branch information
goodmind committed Jun 20, 2019
1 parent ba67d4c commit 4852eaf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/effector/stdlib/typedef.js
Expand Up @@ -33,18 +33,22 @@ export const step: {|
|}): Emit,
compute(data: {|
fn: (data: any, scope: {[string]: any, ...}) => any,
fail?: (data: mixed, scope: {[string]: any, ...}) => any,
meta?: NodeMeta,
|}): Compute,
filter(data: {|
fn: (data: any, scope: {[string]: any, ...}) => any,
fail?: (data: mixed, scope: {[string]: any, ...}) => any,
meta?: NodeMeta,
|}): Filter,
run(data: {
fn: (data: any, scope: {[string]: any, ...}) => any,
fail?: (data: mixed, scope: {[string]: any, ...}) => any,
meta?: NodeMeta,
}): Run,
tap(data: {
fn: (data: any, scope: {[string]: any, ...}) => any,
fail?: (data: mixed, scope: {[string]: any, ...}) => any,
meta?: NodeMeta,
}): Tap,
update(data: {|
Expand Down

1 comment on commit 4852eaf

@vercel
Copy link

@vercel vercel bot commented on 4852eaf Jun 20, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.