Socket
Socket
Sign inDemoInstall

@types/bluebird

Package Overview
Dependencies
0
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.5.34 to 3.5.35

bluebird/ts4.1/index.d.ts

25

bluebird/index.d.ts

@@ -5,3 +5,2 @@ // Type definitions for bluebird 3.5

// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.2

@@ -44,2 +43,24 @@ /*!

type PromisifyAllKeys<T> = T extends string ? `${T}Async` : never;
type WithoutLast<T> = T extends [...infer A, any] ? A : [];
type Last<T> = T extends [...any[], infer L] ? L : never;
type ExtractCallbackValueType<T> = T extends (error: any, ...data: infer D) => any ? D : never;
type PromiseMethod<TArgs, TReturn> = TReturn extends never ? never : (...args: WithoutLast<TArgs>) => Promise<TReturn>;
type ExtractAsyncMethod<T> = T extends (...args: infer A) => any
? PromiseMethod<A, ExtractCallbackValueType<Last<Required<A>>>[0]>
: never;
type PromisifyAllItems<T> = {
[K in keyof T as PromisifyAllKeys<K>]: ExtractAsyncMethod<T[K]>;
};
type NonNeverValues<T> = {
[K in keyof T as T[K] extends never ? never : K]: T[K];
};
// Drop `never` values
type PromisifyAll<T> = NonNeverValues<PromisifyAllItems<T>> & T;
declare class Bluebird<R> implements PromiseLike<R>, Bluebird.Inspection<R> {

@@ -780,3 +801,3 @@ readonly [Symbol.toStringTag]: "Object";

// TODO how to model promisifyAll?
static promisifyAll<T extends object>(target: T, options?: Bluebird.PromisifyAllOptions<T>): T;
static promisifyAll<T extends object>(target: T, options?: Bluebird.PromisifyAllOptions<T>): PromisifyAll<T>;

@@ -783,0 +804,0 @@ /**

{
"name": "@types/bluebird",
"version": "3.5.34",
"version": "3.5.35",
"description": "TypeScript definitions for bluebird",

@@ -15,2 +15,9 @@ "license": "MIT",

"types": "index.d.ts",
"typesVersions": {
"<=4.1": {
"*": [
"ts4.1/*"
]
}
},
"repository": {

@@ -23,4 +30,4 @@ "type": "git",

"dependencies": {},
"typesPublisherContentHash": "85e57e51b40855a4ab971e67c1ed07a717cdb4e6b12fcb2b174d5b83dff1b3be",
"typesPublisherContentHash": "281174437a83082d76345c266697f6d59ce28483303f42628ca3a19620e44357",
"typeScriptVersion": "3.5"
}

2

bluebird/README.md

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

### Additional Details
* Last updated: Tue, 04 May 2021 22:31:28 GMT
* Last updated: Tue, 18 May 2021 17:01:48 GMT
* Dependencies: none

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

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