@types/promise.allsettled
Advanced tools
Comparing version 1.0.0 to 1.0.1
import { PromiseRejection, PromiseResolution, PromiseResult } from './types'; | ||
type PromiseTuple<T extends [unknown, ...unknown[]]> = {[P in keyof T]: Promise<T[P]>}; | ||
type PromiseResultTuple<T extends [unknown, ...unknown[]]> = {[P in keyof T]: PromiseResult<T[P], unknown>}; | ||
type PromiseResultTuple<T extends [unknown, ...unknown[]]> = {[P in keyof T]: PromiseResult<T[P]>}; | ||
declare function allSettled(): Promise<[]>; | ||
declare function allSettled<T extends [unknown, ...unknown[]]>(iterable: PromiseTuple<T>): Promise<PromiseResultTuple<T>>; | ||
declare function allSettled<T>(iterable: Iterable<T>): Promise<T[]>; | ||
declare function allSettled<T>(iterable: Iterable<T>): Promise<Array<PromiseResult<T>>>; | ||
export = allSettled; |
@@ -31,4 +31,4 @@ // Type definitions for promise.allsettled 1.0 | ||
type PromiseResolution<T> = PromiseResolutionType<T>; | ||
type PromiseResult<T, E> = PromiseResultType<T, E>; | ||
type PromiseResult<T, E = unknown> = PromiseResultType<T, E>; | ||
type PromiseResultTuple<T extends [unknown, ...unknown[]]> = PromiseResultTupleType<T>; | ||
} |
{ | ||
"name": "@types/promise.allsettled", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "TypeScript definitions for promise.allsettled", | ||
@@ -22,4 +22,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "dea16149b9b51dfaab25110634bdb5fcea1582a1d55a2c321c396abae57d6de1", | ||
"typesPublisherContentHash": "6eeff7e531cd579e3f902d264ad319d37f9deea6c495a16bf558485f571d3960", | ||
"typeScriptVersion": "3.1" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Fri, 21 Jun 2019 07:51:08 GMT | ||
* Last updated: Thu, 11 Jul 2019 23:01:01 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
@@ -11,5 +11,5 @@ export interface PromiseResolution<T> { | ||
export type PromiseResult<T, E> = PromiseResolution<T> | PromiseRejection<E>; | ||
export type PromiseResult<T, E = unknown> = PromiseResolution<T> | PromiseRejection<E>; | ||
export type PromiseTuple<T extends [unknown, ...unknown[]]> = {[P in keyof T]: Promise<T[P]>}; | ||
export type PromiseResultTuple<T extends [unknown, ...unknown[]]> = {[P in keyof T]: PromiseResult<T[P], unknown>}; | ||
export type PromiseResultTuple<T extends [unknown, ...unknown[]]> = {[P in keyof T]: PromiseResult<T[P]>}; |
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
5244