mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
9 lines
358 B
TypeScript
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>;
|
|
}
|