ToFinally: (() => void | Promise<void>)

Type alias for a function that can optionally be executed after the promise resolves or rejects. It can return void or a Promise that resolves to void.

Type declaration

    • (): void | Promise<void>
    • Returns void | Promise<void>