From 191233143fda8695220d91c25759b470650d27c9 Mon Sep 17 00:00:00 2001
From: Kisaragi <48310258+KisaragiEffective@users.noreply.github.com>
Date: Mon, 13 Mar 2023 20:04:14 +0900
Subject: [PATCH] =?UTF-8?q?refactor(frontend):=20=E5=BC=95=E6=95=B0?=
 =?UTF-8?q?=E3=81=AE=E5=9E=8B=E3=82=92=E5=BC=B7=E3=81=8F=E3=81=97=E3=80=81?=
 =?UTF-8?q?=E9=96=A2=E6=95=B0=E5=86=85=E9=83=A8=E3=81=AEas=20any=E3=82=92?=
 =?UTF-8?q?=E9=99=A4=E5=8E=BB=20(#10315)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 packages/frontend/src/scripts/sound.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/frontend/src/scripts/sound.ts b/packages/frontend/src/scripts/sound.ts
index b08982fac..35fd007e6 100644
--- a/packages/frontend/src/scripts/sound.ts
+++ b/packages/frontend/src/scripts/sound.ts
@@ -72,8 +72,8 @@ export function setVolume(audio: HTMLAudioElement, volume: number): HTMLAudioEle
 	return audio;
 }
 
-export function play(type: string) {
-	const sound = ColdDeviceStorage.get('sound_' + type as any);
+export function play(type: 'noteMy' | 'note' | 'antenna' | 'channel' | 'notification') {
+	const sound = ColdDeviceStorage.get(`sound_${type}`);
 	if (sound.type == null) return;
 	playFile(sound.type, sound.volume);
 }