UNPKG
react-async-ui
Version:
latest (0.2.3)
0.2.3
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0
Asynchronous React hooks to manage modal UI state
github.com/ig2r/react-async-ui
react-async-ui
/
dist
/
cjs
/
types
/
AsyncModalProps.d.ts
9 lines
(8 loc)
•
257 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
/** * 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
; }