We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cabf04 commit 489e900Copy full SHA for 489e900
src/interface.ts
@@ -26,7 +26,9 @@ export type MotionEvent = (TransitionEvent | AnimationEvent) & {
26
deadline?: boolean;
27
};
28
29
-export type MotionPrepareEventHandler = (element: HTMLElement) => Promise<any>;
+export type MotionPrepareEventHandler = (
30
+ element: HTMLElement,
31
+) => Promise<any> | void;
32
33
export type MotionEventHandler = (
34
element: HTMLElement,
0 commit comments