Skip to content

Commit

Permalink
Merge pull request #824 from newoga/feature/improve-flow-typing-action
Browse files Browse the repository at this point in the history
Improve flow typing for action method
  • Loading branch information
mweststrate committed Feb 8, 2017
2 parents 94a11b1 + 5cab298 commit 3ba2d24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flow-typed/mobx.js
Expand Up @@ -301,6 +301,8 @@ declare module 'mobx' {
declare function extendShallowObservable(target: any): any;

declare function action(targetOrName: any, propertyKeyOrFuc?: any, descriptor?: PropertyDescriptor): any;
declare function action<T>(name: string, func: T): T;
declare function action<T>(func: T): T;
declare function runInAction<T>(name: string, block: () => T, scope?: any): T;
declare function runInAction<T>(block: () => T, scope?: any): T;
declare function isAction(thing: any): boolean;
Expand Down

0 comments on commit 3ba2d24

Please sign in to comment.