UNPKG
@hanxx/vue-hooks
Version:
latest (1.1.1)
1.1.1
1.1.0
1.0.2
1.0.1
⚡️ Awesome Vue Hooks
github.com/lianghx-319/vue-hooks
lianghx-319/vue-hooks
@hanxx/vue-hooks
/
lib
/
usePrevious.d.ts
3 lines
(2 loc)
•
131 B
TypeScript
View Raw
1
2
3
import
{
Ref
}
from
'@vue/composition-api'
;
export
default
function
usePrevious<T>(
state
:
Ref
<T> | (
() =>
T)):
Ref
<T |
undefined
>;