promise-assist
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -15,3 +15,3 @@ export declare type PromiseResolveCb<T> = (value?: T | PromiseLike<T>) => void; | ||
*/ | ||
export declare function deferred<T>(): IDeferredPromise<T>; | ||
export declare function deferred<T = void>(): IDeferredPromise<T>; | ||
//# sourceMappingURL=deferred.d.ts.map |
@@ -15,3 +15,3 @@ export declare type PromiseResolveCb<T> = (value?: T | PromiseLike<T>) => void; | ||
*/ | ||
export declare function deferred<T>(): IDeferredPromise<T>; | ||
export declare function deferred<T = void>(): IDeferredPromise<T>; | ||
//# sourceMappingURL=deferred.d.ts.map |
{ | ||
"name": "promise-assist", | ||
"description": "Several helper functions when working with native promises", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"main": "./cjs/index.js", | ||
@@ -17,6 +17,7 @@ "module": "./esm/index.js", | ||
"pretest": "yarn lint", | ||
"test": "mocha -r @ts-tools/node/r \"test/**/*.spec.ts\" --watch-extensions ts" | ||
"test": "mocha -r @ts-tools/node/r \"test/**/*.spec.ts\" --watch-extensions ts", | ||
"prepack": "yarn build" | ||
}, | ||
"devDependencies": { | ||
"@ts-tools/node": "^0.9.2", | ||
"@ts-tools/node": "^0.9.3", | ||
"@types/chai": "^4.1.7", | ||
@@ -27,3 +28,3 @@ "@types/chai-as-promised": "^7.1.0", | ||
"chai-as-promised": "^7.1.1", | ||
"mocha": "^5.2.0", | ||
"mocha": "^6.0.0", | ||
"npm-run-all": "^4.1.5", | ||
@@ -30,0 +31,0 @@ "rimraf": "^2.6.3", |
@@ -17,3 +17,3 @@ export type PromiseResolveCb<T> = (value?: T | PromiseLike<T>) => void | ||
*/ | ||
export function deferred<T>(): IDeferredPromise<T> { | ||
export function deferred<T = void>(): IDeferredPromise<T> { | ||
let resolve!: PromiseResolveCb<T> | ||
@@ -20,0 +20,0 @@ let reject!: PromiseRejectCb |
Sorry, the diff of this file is not supported yet
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
38144