UNPKG

react-async-ui

Version:

Asynchronous React hooks to manage modal UI state

9 lines (8 loc) 257 B
/** * Invocation arguments and resolve/reject callbacks for a modal UI element. */ export interface AsyncModalProps<TValue, TResult> { value: TValue; resolve: (result: TResult | PromiseLike<TResult>) => void; reject: (reason?: any) => void; }