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
/
useTimeline.d.ts
8 lines
(7 loc)
•
244 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
import
type
{
Ref
}
from
"@vue/runtime-dom"
;
export
declare
function
useTimeline<T>(
sequence
:
ReadonlyArray
<[
number
, T]>,
initial
: T, { loop, }: {
loop
?:
boolean
|
undefined
; }):
Ref
<T> & {
pause
:
() =>
void
;
resume
:
() =>
void
; };