refactor(modules/web): Mirgrat to typescript; fix bugs

This commit is contained in:
Xwite committed 2024-10-14 21:46:45 +08:00
1 parent b95deeb607
commit 7984c45cb9
81 files changed
+6396 -3166

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
export {}
export type Options = {
duration?: number | [(distance: number) => number]
offset?: number
callback?: () => void // "undefined" is a suitable default, and won't be called
easing?: (
timeElapsed: number,
start: number,
distance: number,
duration: number,
) => number
a11y?: boolean
container?: HTMLElement | string
}
export default function (
target: number | string | HTMLElement,
options: Options = {},
): void