promise_mtd
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -7,2 +7,6 @@ type Unwrap<T> = | ||
type UnwrapListOrObject<Type> = { | ||
[P in keyof Type]: Unwrap<Type[P]>; | ||
}; | ||
declare module 'promise_mtd' { | ||
@@ -23,7 +27,9 @@ export function forEach<Input = any>(data: Array<Input>, handler: (el: Input, index: number) => Promise<void>): void; | ||
export function all<Input = any>(data: Array<Input>): Promise<Array< Unwrap<Input> >>; | ||
export function all<Input = any>(data: { [k: string]: Input }): Promise<{ [k: string]: Unwrap<Input> }>; | ||
export function all<T>(list: T): Promise<UnwrapListOrObject<T>>; | ||
// export function all<Input = any>(data: Array<Input>): Promise<Array< Unwrap<Input> >>; | ||
// export function all<Input = any>(data: { [k: string]: Input }): Promise<{ [k: string]: Unwrap<Input> }>; | ||
export function setImmediate(): Promise<null>; | ||
} | ||
{ | ||
"name": "promise_mtd", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "Set of methods allowing simplify work with Promises in cycle. Methods: forEach, map, while, transform, parallel", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
14245
292