Files
DefinitelyTyped/types/promise.prototype.finally/index.d.ts
2017-03-24 14:27:52 -07:00

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;