Type alias AnimateFunction<T>
AnimateFunction<T>: ((animation,
duration,
params?) => { animation: Animation<T>; duration: number; mode: "async" | "sync"; params: Record<string, any>; setAsync: (() => ReturnType<AnimateFunction<T>>); setSync: (() => ReturnType<AnimateFunction<T>>); }) Type declaration
- (animation, duration, params?): {
animation: Animation<T>;
duration: number;
mode: "async" | "sync";
params: Record<string, any>;
setAsync: (() => ReturnType<AnimateFunction<T>>);
setSync: (() => ReturnType<AnimateFunction<T>>);
} Parameters
- animation: Animation<T>
- duration: number
Optional
params: Record<string, any>
Returns {
animation: Animation<T>;
duration: number;
mode: "async" | "sync";
params: Record<string, any>;
setAsync: (() => ReturnType<AnimateFunction<T>>);
setSync: (() => ReturnType<AnimateFunction<T>>);
}
duration: number
mode: "async" | "sync"
params: Record<string, any>