From 1d4181ce881029300d4c88ac1dad79ee66d584ac Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih Date: Sun, 26 Nov 2023 14:56:17 +0900 Subject: [PATCH] enhance jsdoc --- packages/frontend/src/scripts/sound.ts | 5 +++++ packages/frontend/src/store.ts | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/packages/frontend/src/scripts/sound.ts b/packages/frontend/src/scripts/sound.ts index ac1124a8e5..2b7b95f514 100644 --- a/packages/frontend/src/scripts/sound.ts +++ b/packages/frontend/src/scripts/sound.ts @@ -12,8 +12,13 @@ const cache = new Map(); let canPlay = true; export const soundsTypes = [ + // 音声なし null, + + // ドライブの音声 'driveFile', + + // プリインストール 'syuilo/n-aec', 'syuilo/n-aec-4va', 'syuilo/n-aec-4vb', diff --git a/packages/frontend/src/store.ts b/packages/frontend/src/store.ts index 9808623a84..b96d4ae4fa 100644 --- a/packages/frontend/src/store.ts +++ b/packages/frontend/src/store.ts @@ -36,13 +36,19 @@ interface PageViewInterruptor { handler: (page: Misskey.entities.Page) => unknown; } +/** サウンド設定 */ export type SoundStore = { type: Exclude; volume: number; } | { type: 'driveFile'; + + /** ドライブのファイルID */ fileId: string; + + /** ファイルURL(こちらが優先される) */ fileUrl: string; + volume: number; }