From b73e6201a31f4eaed3247c99d03aaa717ff10041 Mon Sep 17 00:00:00 2001 From: Yi Wang Date: Mon, 6 Apr 2020 11:09:30 -0700 Subject: [PATCH] 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 --- types/lyric-parser/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/lyric-parser/index.d.ts b/types/lyric-parser/index.d.ts index 004e07692d..14a01555f2 100644 --- a/types/lyric-parser/index.d.ts +++ b/types/lyric-parser/index.d.ts @@ -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;