-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathastro-spa.d.ts
57 lines (56 loc) · 1.76 KB
/
astro-spa.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* thank you GH user 'johngerome' for helping me regain my sanity */
/* https://github.com/RafidMuhymin/astro-spa/issues/4#issuecomment-1249989651 */
declare module 'astro-spa' {
export interface scrollIntoViewOptions {
behavior?: 'smooth' | 'auto';
block?: 'start' | 'center' | 'end' | 'nearest';
inline?: 'start' | 'center' | 'end' | 'nearest';
}
export interface IntersectionObserverInit {
root?: string;
rootMargin?: string;
threshold?: number | number[];
}
export interface progressBarOptions {
height?: string;
secondary?: boolean;
colors?: {
foreground?: string;
background?: string;
};
}
export interface analytics {
trackingID: string;
anonymizeIP?: boolean;
colorDepth?: boolean;
characterSet?: boolean;
screenSize?: boolean;
language?: boolean;
fingerprinting?: boolean;
trackingPeriod?: 'year' | 'month' | 'day';
}
export interface Props {
analytics?: analytics;
attributes?: Partial<HTMLScriptElement>;
cache?: boolean;
containerSelector?: string;
defaultAnimation?: boolean;
delay?: number;
external?: boolean;
forceRequestIdleCallback?: boolean;
highPriorityPrefetch?: boolean;
ignores?: string[];
intersectionObserverOptions?: IntersectionObserverInit;
limit?: number;
localLinkDetector?: boolean;
prefetch?: boolean;
prefetchUpgradation?: boolean;
progressBar?: boolean;
progressBarOptions?: progressBarOptions;
scanOnMount?: boolean;
scrollIntoView?: boolean;
scrollIntoViewOptions?: boolean | scrollIntoViewOptions;
timeout?: number | false;
}
export function Spa(props: Props): void;
}