Skip to content
Browse files
Merge pull request #824 from newoga/feature/improve-flow-typing-action
Improve flow typing for action method
  • Loading branch information
mweststrate committed Feb 8, 2017
2 parents 94a11b1 + 5cab298 commit 3ba2d240cd45351968f14d4b95c48ab7e47bf15f
Showing 1 changed file with 2 additions and 0 deletions.
@@ -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;

0 comments on commit 3ba2d24

Please sign in to comment.