Socket
Socket
Sign inDemoInstall

@types/q

Package Overview
Dependencies
0
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

14

q/index.d.ts

@@ -14,3 +14,3 @@ // Type definitions for Q 1.0

*/
declare function Q<T>(promise: Q.IPromise<T>): Q.Promise<T>;
declare function Q<T>(promise: PromiseLike<T>): Q.Promise<T>;
/**

@@ -26,7 +26,6 @@ * If value is not a promise, returns a promise that is fulfilled with value.

declare namespace Q {
export type IWhenable<T> = IPromise<T> | T;
export interface IPromise<T> {
then<U>(onFulfill?: (value: T) => IWhenable<U>, onReject?: (error: any) => IWhenable<U>): IPromise<U>;
}
export type IWhenable<T> = PromiseLike<T> | T;
export type IPromise<T> = PromiseLike<T>;
export interface Deferred<T> {

@@ -229,3 +228,6 @@ promise: Promise<T>;

*/
export function all<A, B>(promises: IWhenable<[IWhenable<A>, IWhenable<B>]>): Promise<[A, B]>;
export function all<A, B>(promises: IWhenable<[IPromise<A>, IPromise<B>]>): Promise<[A, B]>;
export function all<A, B>(promises: IWhenable<[A, IPromise<B>]>): Promise<[A, B]>;
export function all<A, B>(promises: IWhenable<[IPromise<A>, B]>): Promise<[A, B]>;
export function all<A, B>(promises: IWhenable<[A, B]>): Promise<[A, B]>;
/**

@@ -232,0 +234,0 @@ * 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.

{
"name": "@types/q",
"version": "1.0.1",
"version": "1.0.2",
"description": "TypeScript definitions for Q",

@@ -28,4 +28,4 @@ "license": "MIT",

"peerDependencies": {},
"typesPublisherContentHash": "04cb635050eae18f9262a3fd79a98d5b64fc952bd59c4f75b2568fc6ce8b4cb1",
"typesPublisherContentHash": "da59754f207ca3cfc37e73607aaaa0e0b2303a0f37ce3b26e2649062e8f8a4fa",
"typeScriptVersion": "2.3"
}

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

Additional Details
* Last updated: Thu, 15 Jun 2017 20:15:09 GMT
* Last updated: Fri, 30 Jun 2017 21:28:46 GMT
* Dependencies: none

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc