@types/bluebird-global
Advanced tools
Comparing version 3.5.10 to 3.5.11
@@ -116,2 +116,3 @@ // Type definitions for bluebird 3.5 | ||
declare global { | ||
type IterateFunction<T, R> = (item: T, index: number, arrayLength: number) => (R | PromiseLike<R>); | ||
/* | ||
@@ -121,4 +122,6 @@ * Patch all instance method | ||
interface Promise<T> { | ||
all: Bluebird<T>["all"]; | ||
any: Bluebird<T>["any"]; | ||
all(this: Promise<Iterable<{}>>): Bluebird<T>; | ||
all(): Bluebird<never>; | ||
any<Q>(this: Promise<T & Iterable<Q>>): Bluebird<Q>; | ||
any(): Bluebird<never>; | ||
asCallback: Bluebird<T>["asCallback"]; | ||
@@ -133,5 +136,5 @@ bind: Bluebird<T>["bind"]; | ||
done: Bluebird<T>["done"]; | ||
each: Bluebird<T>["each"]; | ||
each<Q>(this: Promise<T & Iterable<Q>>, iterator: IterateFunction<Q, any>): Bluebird<T>; | ||
error: Bluebird<T>["error"]; | ||
filter: Bluebird<T>["filter"]; | ||
filter<Q>(this: Promise<T & Iterable<Q>>, filterer: IterateFunction<Q, boolean>, options?: Bluebird.ConcurrencyOption): Bluebird<T>; | ||
// finally: Bluebird<T>["finally"]; // Provided by lib.es2018.promise.d.ts | ||
@@ -145,13 +148,14 @@ get: Bluebird<T>["get"]; | ||
lastly: Bluebird<T>["lastly"]; | ||
map: Bluebird<T>["map"]; | ||
mapSeries: Bluebird<T>["mapSeries"]; | ||
map<U, Q>(this: Promise<T & Iterable<Q>>, mapper: IterateFunction<Q, U>, options?: Bluebird.ConcurrencyOption): Bluebird<U[]>; | ||
mapSeries<U, Q>(this: Promise<T & Iterable<Q>>, iterator: IterateFunction<Q, U>): Bluebird<U[]>; | ||
nodeify: Bluebird<T>["nodeify"]; | ||
props: Bluebird<T>["props"]; | ||
race: Bluebird<T>["race"]; | ||
race<Q>(this: Promise<T & Iterable<Q>>): Bluebird<Q>; | ||
race(): Bluebird<never>; | ||
reason: Bluebird<T>["reason"]; | ||
reduce: Bluebird<T>["reduce"]; | ||
reduce<U, Q>(this: Promise<T & Iterable<Q>>, reducer: (memo: U, item: Q, index: number, arrayLength: number) => (U | PromiseLike<U>), initialValue?: U): Bluebird<U>; | ||
reflect: Bluebird<T>["reflect"]; | ||
return: Bluebird<T>["return"]; | ||
some: Bluebird<T>["some"]; | ||
spread: Bluebird<T>["spread"]; | ||
some(this: Promise<Iterable<{}>>, count: number): Bluebird<T>; | ||
spread<U, Q>(this: Bluebird<T & Iterable<Q>>, fulfilledHandler: (...values: Q[]) => (U | PromiseLike<U>)): Bluebird<U>; | ||
suppressUnhandledRejections: Bluebird<T>["suppressUnhandledRejections"]; | ||
@@ -158,0 +162,0 @@ tap: Bluebird<T>["tap"]; |
{ | ||
"name": "@types/bluebird-global", | ||
"version": "3.5.10", | ||
"version": "3.5.11", | ||
"description": "TypeScript definitions for bluebird", | ||
@@ -17,3 +17,4 @@ "license": "MIT", | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/bluebird-global" | ||
}, | ||
@@ -24,4 +25,4 @@ "scripts": {}, | ||
}, | ||
"typesPublisherContentHash": "47dfbfb04296ada62053257d0716c483c0df69ec525b93959b0a0f38420edbab", | ||
"typesPublisherContentHash": "5d8ce1a4abd23aa0dff37edc1eb09f7b86790f36baf9ed8f5d411d21a0d56786", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 13 Feb 2019 16:16:47 GMT | ||
* Last updated: Tue, 26 Feb 2019 17:01:53 GMT | ||
* Dependencies: @types/bluebird | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
18813
276