Skip to content
This repository was archived by the owner on Jun 21, 2025. It is now read-only.

Commit e919280

Browse files
committed
refactor(core): remove unused import and update type definition
- Remove unused import of Widget from widget.ts - Update type definition of widgetInstance parameter to any
1 parent 6ed4761 commit e919280

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/core/src/animation.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { Ref, WatchSource } from "vue";
22
import { getCurrentInstance, ref, watch } from "vue";
33
import { usePlayer } from "./player";
4-
import { Widget } from "./widget";
54

65
export type TimingFunction = (x: number) => number;
76
export const linear: TimingFunction = (x) => x;
@@ -162,7 +161,7 @@ export function defineAnimation<T, A = object>(setup: AnimationSetup<T, A>) {
162161
export function registerAnimation<T>(
163162
name: string,
164163
setup: (...args: any[]) => (animate: AnimationManager<T>) => void,
165-
widgetInstance?: Widget,
164+
widgetInstance?: any,
166165
): void {
167166
const current = getCurrentInstance();
168167
const { widget } = current?.props as {

0 commit comments

Comments
 (0)