-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.d.ts
37 lines (25 loc) · 658 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
import { PluginFunction } from 'vue';
export interface AnnouncerPlugins {
name: string,
handler: any
}
export interface Announcer {
data: Record<string, any>;
options: Record<string, object>;
plugins?: AnnouncerPlugins[];
set(message: string, politeness: string): void;
polite(message: string): void;
assertive(message: string): void;
reset(): void;
setComplementRoute(complementRoute: string): void;
}
declare module 'vue/types/vue' {
interface Vue
{
$announcer: Announcer;
}
}
declare class VueAnnouncer {
static install: PluginFunction<never>;
}
export default VueAnnouncer;