@js-bits/xpromise
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -37,18 +37,18 @@ export default ExtendablePromise; | ||
* All arguments will be passed through to `executor` function. | ||
* @returns {ExtendablePromise<T>} | ||
* @returns {this} | ||
* @throws {typeof ExtendablePromise.ExecutionError} | ||
*/ | ||
execute(...args: unknown[][]): ExtendablePromise<T>; | ||
execute(...args: unknown[][]): this; | ||
/** | ||
* Resolves `ExtendablePromise` | ||
* @param result | ||
* @returns {ExtendablePromise<T>} | ||
* @returns {this} | ||
*/ | ||
resolve(result: T): ExtendablePromise<T>; | ||
resolve(result: T): this; | ||
/** | ||
* Rejects `ExtendablePromise` | ||
* @param reason | ||
* @returns {ExtendablePromise<T>} | ||
* @returns {this} | ||
*/ | ||
reject(reason: Error): ExtendablePromise<T>; | ||
reject(reason: Error): this; | ||
} |
@@ -83,3 +83,3 @@ import enumerate from '@js-bits/enumerate'; | ||
* All arguments will be passed through to `executor` function. | ||
* @returns {ExtendablePromise<T>} | ||
* @returns {this} | ||
* @throws {typeof ExtendablePromise.ExecutionError} | ||
@@ -105,3 +105,3 @@ */ | ||
* @param result | ||
* @returns {ExtendablePromise<T>} | ||
* @returns {this} | ||
*/ | ||
@@ -116,3 +116,3 @@ resolve(/** @type {T} */ result) { | ||
* @param reason | ||
* @returns {ExtendablePromise<T>} | ||
* @returns {this} | ||
*/ | ||
@@ -119,0 +119,0 @@ reject(/** @type {Error} */ reason) { |
{ | ||
"name": "@js-bits/xpromise", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Extendable Promise", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
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
27400