UNPKG
@cran/vue.use
Version:
latest (0.0.2)
0.0.2
0.0.1
Cranberry Vue Use Utilities
c6s.gitlab.io/lib/vue/use/modules.html
@cran/vue.use
/
cjs
/
state
/
usePromise.d.ts
6 lines
(5 loc)
•
253 B
TypeScript
View Raw
1
2
3
4
5
6
export
declare
function
usePromise<T>(
promise
:
Promise
<T>): {
result
:
import
(
"@vue/reactivity"
).
Ref
<T |
undefined
>;
state
:
import
(
"@vue/reactivity"
).
Ref
<
"PENDING"
|
"RESOLVED"
|
"REJECTED"
>;
error
:
import
(
"@vue/reactivity"
).
Ref
<
unknown
>; };