From cf31df084e23b8762bdb4acb9084a267e705a7ca Mon Sep 17 00:00:00 2001 From: Doma Date: Sun, 8 Jan 2023 17:13:34 +0800 Subject: [PATCH] fix(APlayer): audio accepts readonly array --- src/components/player.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/player.tsx b/src/components/player.tsx index 73cefe0..636e993 100644 --- a/src/components/player.tsx +++ b/src/components/player.tsx @@ -16,7 +16,7 @@ import { useThemeColor } from "../hooks/useThemeColor"; * @see https://aplayer.js.org/#/home?id=options */ type APlayerProps = { - audio: AudioInfo | AudioInfo[]; + audio: AudioInfo | readonly AudioInfo[]; theme?: string;