refactor(modules/web): Mirgrat to typescript; fix bugs
This commit is contained in:
1 parent
b95deeb607
commit
7984c45cb9
81 files changed
+6396
-3166
No files matched your search
Vendored
+18
@@ -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
|
||||
Reference in new issue
Block a user