Fix the type of lines of lyric-parser (#43671)

* Fix the type of lines

The inner type should be js.Array[AnonLineNum] instead of js.Array[String]

* Update index.d.ts

* Update index.d.ts
This commit is contained in:
Yi Wang 2020-04-06 11:09:30 -07:00 committed by GitHub
parent 92589048c2
commit b73e6201a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ export default class Lyric {
lrc: string;
tags: { album: string; artist: string; by: string; offset: string; title: string };
lines: string[];
lines: Array<{ time: number; txt: string }>;
handler: (params: { lineNum: number; txt: string }) => void;
state: number;
curLine: number;