@types/promise-polyfill
Version:
TypeScript definitions for promise-polyfill
36 lines (27 loc) • 1.27 kB
Markdown
# Installation
> `npm install --save @types/promise-polyfill`
# Summary
This package contains type definitions for promise-polyfill (https://github.com/taylorhakes/promise-polyfill).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise-polyfill.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise-polyfill/index.d.ts)
````ts
// Type definitions for promise-polyfill 6.0
// Project: https://github.com/taylorhakes/promise-polyfill
// Definitions by: Steve Jenkins <https://github.com/skysteve>
// Daniel Cassidy <https://github.com/djcsdy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace Promise {
interface PromisePolyfillConstructor extends PromiseConstructor {
_immediateFn?: ((handler: (() => void) | string) => void) | undefined;
}
}
declare const Promise: Promise.PromisePolyfillConstructor;
export = Promise;
````
### Additional Details
* Last updated: Wed, 07 Jul 2021 17:02:37 GMT
* Dependencies: none
* Global values: none
# Credits
These definitions were written by [Steve Jenkins](https://github.com/skysteve), and [Daniel Cassidy](https://github.com/djcsdy).