mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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:
parent
92589048c2
commit
b73e6201a3
2
types/lyric-parser/index.d.ts
vendored
2
types/lyric-parser/index.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user