typescript

This commit is contained in:
itsrubberduck
2026-02-17 18:19:55 +01:00
parent 4a01593612
commit bf4ce3abdf
5 changed files with 30 additions and 11 deletions

21
types/aos.d.ts vendored Normal file
View File

@@ -0,0 +1,21 @@
declare module 'aos' {
interface AOSOptions {
offset?: number
delay?: number | string
duration?: number | string
easing?: string
once?: boolean
mirror?: boolean
anchorPlacement?: string
disable?: boolean | string | (() => boolean)
}
interface AOS {
init(options?: AOSOptions): void
refresh(force?: boolean): void
refreshHard(): void
}
const aos: AOS
export default aos
}