mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-21 17:20:32 +08:00
13 lines
412 B
TypeScript
13 lines
412 B
TypeScript
// Type definitions for promise.prototype.finally v2.0.1
|
|
// Project: https://github.com/matthew-andrews/Promise.prototype.finally
|
|
// Definitions by: Slava Shpitalny <https://github.com/slavik57>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare global {
|
|
interface Promise<T> {
|
|
finally<U>(onFinally?: () => U | Promise<U>): Promise<T>;
|
|
}
|
|
}
|
|
|
|
export function shim(): void;
|