-
Notifications
You must be signed in to change notification settings - Fork 2
/
types.d.ts
30 lines (27 loc) · 738 Bytes
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
declare module 'hes-gallery' {
export interface HesGalleryOptions {
disableScrolling: boolean
hostedStyles: boolean
animations: boolean
keyboardControl: boolean
minResolution: number
autoInit: boolean
wrapAround: boolean
showImageCount: boolean
linkNested: boolean
}
export interface HesGalleryI {
version: string
options: HesGalleryOptions
setOptions(options?: Partial<HesGalleryOptions>): void
init(options?: Partial<HesGalleryOptions>): void
replaceImages(gallery: HTMLElement): void
createDOM(): void
show(gallery: number, index: number): void
hide(): void
next(): void
prev(): void
}
const HesGallery: HesGalleryI
export default HesGallery
}