We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 94a11b1 + 5cab298 commit 3ba2d24Copy full SHA for 3ba2d24
flow-typed/mobx.js
@@ -301,6 +301,8 @@ declare module 'mobx' {
301
declare function extendShallowObservable(target: any): any;
302
303
declare function action(targetOrName: any, propertyKeyOrFuc?: any, descriptor?: PropertyDescriptor): any;
304
+ declare function action<T>(name: string, func: T): T;
305
+ declare function action<T>(func: T): T;
306
declare function runInAction<T>(name: string, block: () => T, scope?: any): T;
307
declare function runInAction<T>(block: () => T, scope?: any): T;
308
declare function isAction(thing: any): boolean;
0 commit comments