forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
favico.js.d.ts
43 lines (31 loc) · 1.01 KB
/
favico.js.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
// Type definitions for favico.js
// Project: http://lab.ejci.net/favico.js/
// Definitions by: Yu Matsushita <https://github.com/drowse314-dev-ymat>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace favicojs {
interface FavicoJsStatic {
new (opt?: FavicoJsOptions): Favico;
}
interface FavicoJsOptions {
bgColor?: string;
textColor?: string;
fontFamily?: string;
fontStyle?: string;
type?: string;
position?: string;
animation?: string;
elementId?: string;
element?: HTMLElement;
dataUrl?: (url: string) => any;
}
interface Favico {
badge(number: number): void;
badge(number: number, animation: string): void;
badge(number: number, opts: FavicoJsOptions): void;
reset(): void;
image(imageElement: HTMLElement): void;
video(imageElement: HTMLElement): void;
webcam(): void;
}
}
declare var Favico: favicojs.FavicoJsStatic;