@types/promise
- Version 7.1.30
- Published
- No dependencies
- MIT license
Install
npm i @types/promise
yarn add @types/promise
pnpm add @types/promise
Overview
TypeScript definitions for promise v7.1.1
Index
Variables
variable Promise
var Promise: Promise.IPromise;
Interfaces
interface IPromise
interface IPromise {}
property all
all: (array: Array<IThenable<any>>) => IThenable<Array<any>>;
property denodeify
denodeify: (fn: Function) => (...args: any[]) => IThenable<any>;
property nodeify
nodeify: (fn: Function) => Function;
property reject
reject: <T>(value: T) => IThenable<T>;
property resolve
resolve: <T>(value: T) => IThenable<T>;
construct signature
new <T>( resolver: ( resolve: (value: T) => void, reject: (reason: any) => void ) => void): IThenable<T>;
interface IThenable
interface IThenable<T> {}
method catch
catch: <R>(onRejected?: (error: any) => IThenable<R> | R) => IThenable<R>;
method done
done: <R>( onFulfilled?: (value: T) => IThenable<R> | R, onRejected?: (error: any) => IThenable<R> | R) => IThenable<R>;
method nodeify
nodeify: <R>(callback: Function) => IThenable<R>;
method then
then: <R>( onFulfilled?: (value: T) => IThenable<R> | R, onRejected?: (error: any) => IThenable<R> | R) => IThenable<R>;
Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/promise
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/promise)
- HTML<a href="https://www.jsdocs.io/package/@types/promise"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3854 ms. - Missing or incorrect documentation? Open an issue for this package.