Skip to content

Commit

Permalink
refactor(core): remove unused import and update type definition
Browse files Browse the repository at this point in the history
- Remove unused import of Widget from widget.ts
- Update type definition of widgetInstance parameter to any
  • Loading branch information
xs10l3 committed Dec 29, 2024
1 parent 6ed4761 commit e919280
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/animation.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { Ref, WatchSource } from "vue";
import { getCurrentInstance, ref, watch } from "vue";
import { usePlayer } from "./player";
import { Widget } from "./widget";

export type TimingFunction = (x: number) => number;
export const linear: TimingFunction = (x) => x;
Expand Down Expand Up @@ -162,7 +161,7 @@ export function defineAnimation<T, A = object>(setup: AnimationSetup<T, A>) {
export function registerAnimation<T>(
name: string,
setup: (...args: any[]) => (animate: AnimationManager<T>) => void,
widgetInstance?: Widget,
widgetInstance?: any,
): void {
const current = getCurrentInstance();
const { widget } = current?.props as {
Expand Down

0 comments on commit e919280

Please sign in to comment.