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.3 to 1.0.4

10

promise.allsettled/implementation.d.ts

@@ -1,10 +0,12 @@

import { PromiseRejection, PromiseResolution, PromiseResult } from './types';
import { PromiseRejection, PromiseResolution, PromiseResult } from "./types";
type PromiseTuple<T extends [unknown, ...unknown[]]> = {[P in keyof T]: Promise<T[P]> | T[P]};
type PromiseResultTuple<T extends [unknown, ...unknown[]]> = {[P in keyof T]: PromiseResult<T[P]>};
type PromiseTuple<T extends [unknown, ...unknown[]]> = { [P in keyof T]: Promise<T[P]> | T[P] };
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 extends [unknown, ...unknown[]]>(
iterable: PromiseTuple<T>,
): Promise<PromiseResultTuple<T>>;
declare function allSettled<T>(iterable: Iterable<Promise<T> | T>): Promise<Array<PromiseResult<T>>>;
export = allSettled;

14

promise.allsettled/index.d.ts

@@ -9,5 +9,5 @@ // Type definitions for promise.allsettled 1.0

import implementation = require('./implementation');
import getPolyfill = require('./polyfill');
import shim = require('./shim');
import implementation = require("./implementation");
import getPolyfill = require("./polyfill");
import shim = require("./shim");
import {

@@ -18,8 +18,8 @@ PromiseRejection as PromiseRejectionType,

PromiseResultTuple as PromiseResultTupleType,
} from './types';
} from "./types";
type ExportedImplementationType = typeof implementation & {
getPolyfill: typeof getPolyfill,
implementation: typeof implementation,
shim: typeof shim,
getPolyfill: typeof getPolyfill;
implementation: typeof implementation;
shim: typeof shim;
};

@@ -26,0 +26,0 @@

{
"name": "@types/promise.allsettled",
"version": "1.0.3",
"version": "1.0.4",
"description": "TypeScript definitions for promise.allsettled",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise.allsettled",
"license": "MIT",

@@ -32,4 +33,4 @@ "contributors": [

"dependencies": {},
"typesPublisherContentHash": "6a4681bb65bc68eabe78c6e8fc36442f9cb37a07a8e6b260ccbff5ec8437a469",
"typeScriptVersion": "3.1"
"typesPublisherContentHash": "4b73c7b1a8c0a84494eae905aa8834b2dfd8541ccbe0314d262f0a5bcd6447ff",
"typeScriptVersion": "4.5"
}

@@ -1,2 +0,2 @@

import implementation = require('./implementation');
import implementation = require("./implementation");

@@ -3,0 +3,0 @@ declare function getPolyfill(): typeof implementation;

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Fri, 07 Feb 2020 18:24:07 GMT
* Last updated: Sun, 24 Sep 2023 06:37:28 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by Martin Jurča (https://github.com/jurca), Elizabeth Lorenz (https://github.com/kisaraofpern), and Jordan Harband (https://github.com/ljharb).
These definitions were written by [Martin Jurča](https://github.com/jurca), [Elizabeth Lorenz](https://github.com/kisaraofpern), and [Jordan Harband](https://github.com/ljharb).

@@ -1,2 +0,2 @@

import implementation = require('./implementation');
import implementation = require("./implementation");

@@ -3,0 +3,0 @@ declare function shimAllSettled(): typeof implementation;

export interface PromiseResolution<T> {
status: 'fulfilled';
status: "fulfilled";
value: T;

@@ -7,3 +7,3 @@ }

export interface PromiseRejection<E> {
status: 'rejected';
status: "rejected";
reason: E;

@@ -14,3 +14,3 @@ }

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]>};
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]> };

Sorry, the diff of this file is not supported yet

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