UNPKG

use-promise-hook

Version:
5 lines (4 loc) 216 B
type tuple<U = void> = readonly [Promise<U>, (value?: U) => void, (reason: any) => void]; export default function usePromise(): tuple; export default function usePromise<T>(resolveValue: T): tuple<T>; export {};