ref: type

This commit is contained in:
alikia2x (寒寒) 2024-11-09 23:21:12 +08:00
parent 2d10240983
commit b3ba38c91c
Signed by: alikia2x
GPG Key ID: 56209E0CCD8420C6
2 changed files with 9 additions and 22 deletions

View File

@ -1,13 +1,3 @@
import type { ScriptWordsItem } from "../type";
export interface ParserScriptItem {
start: number;
text: string;
words?: ScriptWordsItem[];
translation?: string;
singer?: string;
}
export interface IDTag {
[key: string]: string;
}

View File

@ -1,8 +1,11 @@
import type { ParserScriptItem } from "./lrc/type";
export interface ScriptItem extends ParserScriptItem {
export interface ScriptItem{
end: number;
chorus?: string;
start: number;
text: string;
words?: LyricWord[];
translation?: string;
singer?: string;
}
export interface LyricWord {
@ -12,7 +15,7 @@ export interface LyricWord {
emptyBeat?: number;
}
export interface LrcMetaData {
export interface LyricMetadata {
ar?: string;
ti?: string;
al?: string;
@ -23,14 +26,8 @@ export interface LrcMetaData {
ve?: string;
}
export interface ParsedLrc extends LrcMetaData {
scripts?: ParserScriptItem[];
[key: string]: any;
}
export interface LrcJsonData extends LrcMetaData {
scripts?: ScriptItem[];
export interface LyricData extends LyricMetadata {
scripts?: ScriptItem[];
[key: string]: any;
}