UNPKG

1.27 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/promise-polyfill`
3
4# Summary
5This package contains type definitions for promise-polyfill (https://github.com/taylorhakes/promise-polyfill).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise-polyfill.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise-polyfill/index.d.ts)
10````ts
11// Type definitions for promise-polyfill 6.0
12// Project: https://github.com/taylorhakes/promise-polyfill
13// Definitions by: Steve Jenkins <https://github.com/skysteve>
14// Daniel Cassidy <https://github.com/djcsdy>
15// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
16
17declare namespace Promise {
18 interface PromisePolyfillConstructor extends PromiseConstructor {
19 _immediateFn?: ((handler: (() => void) | string) => void) | undefined;
20 }
21}
22
23declare const Promise: Promise.PromisePolyfillConstructor;
24
25export = Promise;
26
27````
28
29### Additional Details
30 * Last updated: Wed, 07 Jul 2021 17:02:37 GMT
31 * Dependencies: none
32 * Global values: none
33
34# Credits
35These definitions were written by [Steve Jenkins](https://github.com/skysteve), and [Daniel Cassidy](https://github.com/djcsdy).
36
\No newline at end of file