-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
index.d.ts
46 lines (39 loc) · 902 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
export function toast(options: Options): void;
export function setDefaults(options: Options): void;
export function resetDefaults(): void;
export interface Options {
message: string | HTMLElement;
type?: ToastType;
duration?: number;
position?: ToastPosition;
dismissible?: boolean;
pauseOnHover?: boolean;
closeOnClick?: boolean;
single?: boolean;
opacity?: number;
animate?: ToastAnimation;
appendTo?: Node;
extraClasses?: string;
}
export type ToastType = 'is-primary'
| 'is-link'
| 'is-info'
| 'is-success'
| 'is-warning'
| 'is-danger'
| 'is-white'
| 'is-black'
| 'is-light'
| 'is-dark';
export type ToastPosition = 'top-left'
| 'top-right'
| 'top-center'
| 'center'
| 'bottom-left'
| 'bottom-center'
| 'bottom-right';
export interface ToastAnimation {
in?: string;
out?: string;
}
export function setDoc(newDoc: HTMLElement): void;