@types/promise.prototype.finally
TypeScript icon, indicating that this package has built-in type declarations

2.0.6 • Public • Published

Installation

npm install --save @types/promise.prototype.finally

Summary

This package contains type definitions for promise.prototype.finally (https://github.com/es-shims/promise.prototype.finally).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise.prototype.finally.

index.d.ts

declare global {
    interface Promise<T> {
        finally<U>(onFinally?: () => U | PromiseLike<U>): Promise<T>;
    }
}

export = promiseFinally;

declare function promiseFinally<T, U>(promise: Promise<T>, onFinally?: () => U | PromiseLike<U>): Promise<T>;
declare namespace promiseFinally {
    function shim(): void;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Slava Shpitalny, BendingBender, and Jordan Harband.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/promise.prototype.finally

Weekly Downloads

23,635

Version

2.0.6

License

MIT

Unpacked Size

3.73 kB

Total Files

5

Last publish

Collaborators

  • types