Files
DefinitelyTyped/promise.prototype.finally/promise.prototype.finally.d.ts
2016-07-01 14:37:45 +03:00

9 lines
358 B
TypeScript

// Type definitions for promise.prototype.finally v1.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 interface Promise<T> {
finally<U>(onFinally?: () => U | Promise<U>): Promise<U>;
}