Socket
Socket
Sign inDemoInstall

@types/q

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/q - npm Package Compare versions

Comparing version 0.0.39 to 0.0.40

59

q v0.0/index.d.ts

@@ -55,3 +55,7 @@ // Type definitions for Q

*/
then<U>(onFulfill?: (value: T) => IWhenable<U>, onReject?: (error: any) => IWhenable<U>, onProgress?: Function): Promise<U>;
then<U>(
onFulfill?: (value: T) => IWhenable<U>,
onReject?: (error: any) => IWhenable<U>,
onProgress?: Function,
): Promise<U>;

@@ -86,3 +90,7 @@ /**

*/
done(onFulfilled?: (value: T) => any, onRejected?: (reason: any) => any, onProgress?: (progress: any) => any): void;
done(
onFulfilled?: (value: T) => any,
onRejected?: (reason: any) => any,
onProgress?: (progress: any) => any,
): void;

@@ -172,7 +180,11 @@ /**

all<A, B, C, D, E, F>(this: Promise<[IWhenable<A>, IWhenable<B>, IWhenable<C>, IWhenable<D>, IWhenable<E>, IWhenable<F>]>): Promise<[A, B, C, D, E, F]>;
all<A, B, C, D, E, F>(
this: Promise<[IWhenable<A>, IWhenable<B>, IWhenable<C>, IWhenable<D>, IWhenable<E>, IWhenable<F>]>,
): Promise<[A, B, C, D, E, F]>;
/**
* Returns a promise that is fulfilled with an array containing the fulfillment value of each promise, or is rejected with the same rejection reason as the first promise to be rejected.
*/
all<A, B, C, D, E>(this: Promise<[IWhenable<A>, IWhenable<B>, IWhenable<C>, IWhenable<D>, IWhenable<E>]>): Promise<[A, B, C, D, E]>;
all<A, B, C, D, E>(
this: Promise<[IWhenable<A>, IWhenable<B>, IWhenable<C>, IWhenable<D>, IWhenable<E>]>,
): Promise<[A, B, C, D, E]>;
/**

@@ -209,3 +221,8 @@ * Returns a promise that is fulfilled with an array containing the fulfillment value of each promise, or is rejected with the same rejection reason as the first promise to be rejected.

// If a non-promise value is provided, it will not reject or progress
export function when<T, U>(value: IWhenable<T>, onFulfilled: (val: T) => IWhenable<U>, onRejected?: (reason: any) => IWhenable<U>, onProgress?: (progress: any) => any): Promise<U>;
export function when<T, U>(
value: IWhenable<T>,
onFulfilled: (val: T) => IWhenable<U>,
onRejected?: (reason: any) => IWhenable<U>,
onProgress?: (progress: any) => any,
): Promise<U>;

@@ -240,11 +257,17 @@ /**

*/
export function all<A, B, C, D, E, F>(promises: IWhenable<[IWhenable<A>, IWhenable<B>, IWhenable<C>, IWhenable<D>, IWhenable<E>, IWhenable<F>]>): Promise<[A, B, C, D, E, F]>;
export function all<A, B, C, D, E, F>(
promises: IWhenable<[IWhenable<A>, IWhenable<B>, IWhenable<C>, IWhenable<D>, IWhenable<E>, IWhenable<F>]>,
): Promise<[A, B, C, D, E, F]>;
/**
* Returns a promise that is fulfilled with an array containing the fulfillment value of each promise, or is rejected with the same rejection reason as the first promise to be rejected.
*/
export function all<A, B, C, D, E>(promises: IWhenable<[IWhenable<A>, IWhenable<B>, IWhenable<C>, IWhenable<D>, IWhenable<E>]>): Promise<[A, B, C, D, E]>;
export function all<A, B, C, D, E>(
promises: IWhenable<[IWhenable<A>, IWhenable<B>, IWhenable<C>, IWhenable<D>, IWhenable<E>]>,
): Promise<[A, B, C, D, E]>;
/**
* Returns a promise that is fulfilled with an array containing the fulfillment value of each promise, or is rejected with the same rejection reason as the first promise to be rejected.
*/
export function all<A, B, C, D>(promises: IWhenable<[IWhenable<A>, IWhenable<B>, IWhenable<C>, IWhenable<D>]>): Promise<[A, B, C, D]>;
export function all<A, B, C, D>(
promises: IWhenable<[IWhenable<A>, IWhenable<B>, IWhenable<C>, IWhenable<D>]>,
): Promise<[A, B, C, D]>;
/**

@@ -267,4 +290,4 @@ * Returns a promise that is fulfilled with an array containing the fulfillment value of each promise, or is rejected with the same rejection reason as the first promise to be rejected.

/**
* Returns a promise for the first of an array of promises to become settled.
*/
* Returns a promise for the first of an array of promises to become settled.
*/
export function race<T>(promises: IWhenable<T>[]): Promise<T>;

@@ -283,3 +306,7 @@

*/
export function spread<T, U>(promises: IWhenable<T>[], onFulfilled: (...args: T[]) => IWhenable<U>, onRejected?: (reason: any) => IWhenable<U>): Promise<U>;
export function spread<T, U>(
promises: IWhenable<T>[],
onFulfilled: (...args: T[]) => IWhenable<U>,
onRejected?: (reason: any) => IWhenable<U>,
): Promise<U>;

@@ -302,3 +329,3 @@ /**

*/
export function delay(ms: number): Promise <void>;
export function delay(ms: number): Promise<void>;
/**

@@ -332,3 +359,9 @@ * Returns whether a given promise is in the fulfilled state. When the static version is used on non-promises, the result is always true.

export function Promise<T>(resolver: (resolve: (val: IWhenable<T>) => void , reject: (reason: any) => void , notify: (progress: any) => void ) => void ): Promise<T>;
export function Promise<T>(
resolver: (
resolve: (val: IWhenable<T>) => void,
reject: (reason: any) => void,
notify: (progress: any) => void,
) => void,
): Promise<T>;

@@ -335,0 +368,0 @@ /**

{
"name": "@types/q",
"version": "0.0.39",
"version": "0.0.40",
"description": "TypeScript definitions for Q",

@@ -33,4 +33,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/q",

"dependencies": {},
"typesPublisherContentHash": "55f5072b8d2144f2ac22a10e2fa8e14fee9bc4ea6c487ddb9b6053b7f34d54f8",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "307e414c11dcca812a8141f062be47df75e3f89f90d64cf7855dc1dc76d29214",
"typeScriptVersion": "4.3"
}

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

### Additional Details
* Last updated: Wed, 07 Jul 2021 17:02:41 GMT
* Last updated: Wed, 30 Aug 2023 19:35:23 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: `Q`

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