-
Notifications
You must be signed in to change notification settings - Fork 102
/
Copy pathindex.d.ts
50 lines (30 loc) · 857 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
47
48
49
50
// TypeScript Version: 2.8
import _Vue from 'vue';
import * as Vue from 'vue-tsx-support';
export class APlayer extends Vue.Component<APlayer.Options, APlayer.Events> {
static readonly version: string;
readonly $refs: {
container: HTMLDivElement;
};
readonly currentMusic: APlayer.Audio;
readonly currentSettings: APlayer.Settings;
readonly media: APlayer.Media;
play(): Promise<void>;
pause(): void;
toggle(): void;
seek(time: number): void;
switch(audio: number | string): void;
skipBack(): void;
skipForward(): void;
showLrc(): void;
hideLrc(): void;
toggleLrc(): void;
showList(): void;
hideList(): void;
toggleList(): void;
showNotice(text: string, time?: number, opacity?: number): void;
}
export default function install(
Vue: typeof _Vue,
options?: APlayer.InstallOptions
): void;