mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-22 00:32:51 +00:00
24 lines
712 B
TypeScript
24 lines
712 B
TypeScript
// Type definitions for lyric-parser 1.0
|
|
// Project: https://github.com/ustbhuangyi/lyric-parser
|
|
// Definitions by: Wang KaiLing <https://github.com/wkl007>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export default class Lyric {
|
|
constructor(lrc: string, handler: (params: { lineNum: number; txt: string }) => void);
|
|
|
|
lrc: string;
|
|
tags: { album: string; artist: string; by: string; offset: string; title: string };
|
|
lines: string[];
|
|
handler: (params: { lineNum: number; txt: string }) => void;
|
|
state: number;
|
|
curLine: number;
|
|
|
|
play(startTime: number, skipLast?: boolean): void;
|
|
|
|
togglePlay(): void;
|
|
|
|
stop(): void;
|
|
|
|
seek(offset: number): void;
|
|
}
|