Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/promise.allsettled

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/promise.allsettled - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

promise.allsettled/implementation.d.ts
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]>};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc