mobx-state-tree
Advanced tools
Comparing version 5.1.0 to 5.1.1
/** | ||
* @hidden | ||
*/ | ||
export declare type FlowReturn<R> = R extends Promise<infer T> ? T : R; | ||
export declare type FlowReturn<R> = R extends PromiseLike<infer T> ? T : R; | ||
/** | ||
@@ -10,3 +10,3 @@ * See [asynchronous actions](concepts/async-actions.md). | ||
*/ | ||
export declare function flow<R, Args extends any[]>(generator: (...args: Args) => Generator<Promise<any>, R, any>): (...args: Args) => Promise<FlowReturn<R>>; | ||
export declare function flow<R, Args extends any[]>(generator: (...args: Args) => Generator<PromiseLike<any>, R, any>): (...args: Args) => PromiseLike<FlowReturn<R>>; | ||
/** | ||
@@ -42,3 +42,3 @@ * @deprecated Not needed since TS3.6. | ||
*/ | ||
export declare function toGeneratorFunction<R, Args extends any[]>(p: (...args: Args) => Promise<R>): (...args: Args) => Generator<Promise<R>, R, R>; | ||
export declare function toGeneratorFunction<R, Args extends any[]>(p: (...args: Args) => PromiseLike<R>): (...args: Args) => Generator<PromiseLike<R>, R, R>; | ||
/** | ||
@@ -45,0 +45,0 @@ * @experimental |
{ | ||
"name": "mobx-state-tree", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "Opinionated, transactional, MobX powered state container", | ||
@@ -88,3 +88,4 @@ "main": "dist/mobx-state-tree.js", | ||
"state management" | ||
] | ||
], | ||
"gitHead": "108537f10bb12d8800a92297121db386bb232ec9" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1249592
47
1