enhance jsdoc

This commit is contained in:
kakkokari-gtyih 2023-11-26 14:56:17 +09:00
parent 9394d2d849
commit 1d4181ce88
2 changed files with 11 additions and 0 deletions

View File

@ -12,8 +12,13 @@ const cache = new Map<string, AudioBuffer>();
let canPlay = true;
export const soundsTypes = [
// 音声なし
null,
// ドライブの音声
'driveFile',
// プリインストール
'syuilo/n-aec',
'syuilo/n-aec-4va',
'syuilo/n-aec-4vb',

View File

@ -36,13 +36,19 @@ interface PageViewInterruptor {
handler: (page: Misskey.entities.Page) => unknown;
}
/** サウンド設定 */
export type SoundStore = {
type: Exclude<SoundType, 'driveFile'>;
volume: number;
} | {
type: 'driveFile';
/** ドライブのファイルID */
fileId: string;
/** ファイルURLこちらが優先される */
fileUrl: string;
volume: number;
}