fix: resolve TypeScript build errors - Add recordingId prop to AudioPlayer type definition - Replace any type with specific interface in s3-test page

This commit is contained in:
theshy
2025-08-01 19:55:09 +08:00
parent ff8cad36ca
commit 01c1e6a277
2 changed files with 14 additions and 1 deletions

View File

@ -5,7 +5,19 @@ import AudioPlayer from "@/components/AudioPlayer";
export default function S3TestPage() {
const [testUrl, setTestUrl] = useState("");
const [result, setResult] = useState<Record<string, any> | null>(null);
const [result, setResult] = useState<{
status?: number;
statusText?: string;
headers?: Record<string, string>;
accessible?: boolean;
error?: string;
audioTest?: {
blobSize?: number;
blobType?: string;
accessible?: boolean;
error?: string;
};
} | null>(null);
const [loading, setLoading] = useState(false);
const [showAudioPlayer, setShowAudioPlayer] = useState(false);

View File

@ -37,6 +37,7 @@ declare module "@/components/AudioPlayer" {
src: string;
title?: string;
duration?: number;
recordingId?: string;
}
const AudioPlayer: React.FC<AudioPlayerProps>;