vuetensils
Version:
A 'naked' component library for building accessible, lightweight, on-brand applications.
9 lines (8 loc) • 307 B
TypeScript
/**
* @param {Promise | (() => Promise)} [promise]
* @param {{ default: any }} [options]
* @return { [typeof state, typeof watch] }
*/
export default function usePromise(promise?: Promise | (() => Promise), options?: {
default: any;
}): [any, (promise: Promise | (() => Promise)) => Promise<void>];