ref: type
This commit is contained in:
parent
2d10240983
commit
b3ba38c91c
10
packages/core/lyrics/lrc/type.d.ts
vendored
10
packages/core/lyrics/lrc/type.d.ts
vendored
@ -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 {
|
export interface IDTag {
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
}
|
}
|
19
packages/core/lyrics/type.d.ts
vendored
19
packages/core/lyrics/type.d.ts
vendored
@ -1,8 +1,11 @@
|
|||||||
import type { ParserScriptItem } from "./lrc/type";
|
export interface ScriptItem{
|
||||||
|
|
||||||
export interface ScriptItem extends ParserScriptItem {
|
|
||||||
end: number;
|
end: number;
|
||||||
chorus?: string;
|
chorus?: string;
|
||||||
|
start: number;
|
||||||
|
text: string;
|
||||||
|
words?: LyricWord[];
|
||||||
|
translation?: string;
|
||||||
|
singer?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LyricWord {
|
export interface LyricWord {
|
||||||
@ -12,7 +15,7 @@ export interface LyricWord {
|
|||||||
emptyBeat?: number;
|
emptyBeat?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LrcMetaData {
|
export interface LyricMetadata {
|
||||||
ar?: string;
|
ar?: string;
|
||||||
ti?: string;
|
ti?: string;
|
||||||
al?: string;
|
al?: string;
|
||||||
@ -23,13 +26,7 @@ export interface LrcMetaData {
|
|||||||
ve?: string;
|
ve?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ParsedLrc extends LrcMetaData {
|
export interface LyricData extends LyricMetadata {
|
||||||
scripts?: ParserScriptItem[];
|
|
||||||
|
|
||||||
[key: string]: any;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface LrcJsonData extends LrcMetaData {
|
|
||||||
scripts?: ScriptItem[];
|
scripts?: ScriptItem[];
|
||||||
|
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
|
Loading…
Reference in New Issue
Block a user