-
-
Notifications
You must be signed in to change notification settings - Fork 210
/
index.d.ts
31 lines (26 loc) · 820 Bytes
/
index.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
declare module 'fitty' {
export interface FittyOptions {
minSize?: number;
maxSize?: number;
multiLine?: boolean;
observeMutations?: MutationObserverInit;
}
export interface FitOptions {
sync?: boolean;
}
export interface FittyInstance {
element: HTMLElement;
fit: (options?: FitOptions) => void;
freeze: () => void;
unfreeze: () => void;
unsubscribe: () => void;
}
function fitty(el: HTMLElement, options?: FittyOptions): FittyInstance;
function fitty(el: string, options?: FittyOptions): FittyInstance[];
declare namespace fitty {
let observeWindow: boolean;
let observeWindowDelay: number;
const fitAll: (options?: FittyOptions) => void;
}
export default fitty;
}