Skip to content

Commit 489e900

Browse files
committed
chore: Update ts define
1 parent 5cabf04 commit 489e900

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/interface.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ export type MotionEvent = (TransitionEvent | AnimationEvent) & {
2626
deadline?: boolean;
2727
};
2828

29-
export type MotionPrepareEventHandler = (element: HTMLElement) => Promise<any>;
29+
export type MotionPrepareEventHandler = (
30+
element: HTMLElement,
31+
) => Promise<any> | void;
3032

3133
export type MotionEventHandler = (
3234
element: HTMLElement,

0 commit comments

Comments
 (0)