# @types/promise.prototype.finally

> TypeScript definitions for promise.prototype.finally

Latest version **2.0.6** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/promise.prototype.finally
pnpm add @types/promise.prototype.finally
yarn add @types/promise.prototype.finally
bun add @types/promise.prototype.finally
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.6 |
| Published | 2023-11-07 |
| First published | 2016-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/promise.prototype.finally
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise.prototype.finally
- npm.io page: https://npm.io/package/@types/promise.prototype.finally

## Recent versions

- 2.0.6 (latest) — 2023-11-07
- 2.0.4 (ts2.8) — 2020-02-07
- 2.0.3 (ts2.0) — 2019-02-13
- 2.0.5 — 2023-10-18
- 2.0.2 — 2017-07-24
- 2.0.1 — 2017-07-05
- 2.0.0 — 2017-01-06
- 1.0.5 — 2016-10-05
- 1.0.4 — 2016-09-19
- 1.0.3 — 2016-08-25
- 1.0.2 — 2016-08-19
- 1.0.1 — 2016-08-02

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise.prototype.finally/index.d.ts)
````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](https://github.com/slavik57), [BendingBender](https://github.com/BendingBender), and [Jordan Harband](https://github.com/ljharb).

---
_Source: https://npm.io/package/@types/promise.prototype.finally · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
