Skip to content

接口: SongListSource ​

定义于: packages/draw/src/types.ts:58

曲目列表来源(可选)。与 ChartTagSource 常由同一 database 实现。 有则 Draw.poster / Best 板等方法 自动填 dx_max / level_value,调用方不必手算 map。

方法 ​

getSongList() ​

ts
getSongList(query?): Promise<{
  songs: readonly SongMeta[];
}>;

定义于: packages/draw/src/types.ts:60

读取曲目列表;notes: true 时应包含用于计算 dx_max 的物量。

参数 ​

参数类型
query?{ notes?: boolean; }
query.notes?boolean

返回 ​

Promise<{ songs: readonly SongMeta[]; }>