UNPKG

promise-finally

Version:

Simple wrapper to run promise "finally" logic

2 lines (1 loc) 110 B
export default function promiseFinally<T>(value: T | Promise<T>, cb: () => void | Promise<void>): Promise<T>;