// Type definitions for promise.prototype.finally v1.0.1 // Project: https://github.com/matthew-andrews/Promise.prototype.finally // Definitions by: Slava Shpitalny // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare interface Promise { finally(onFinally?: () => U | Promise): Promise; }