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:
@ -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);
|
||||
|
||||
|
||||
1
types/components.d.ts
vendored
1
types/components.d.ts
vendored
@ -37,6 +37,7 @@ declare module "@/components/AudioPlayer" {
|
||||
src: string;
|
||||
title?: string;
|
||||
duration?: number;
|
||||
recordingId?: string;
|
||||
}
|
||||
|
||||
const AudioPlayer: React.FC<AudioPlayerProps>;
|
||||
|
||||
Reference in New Issue
Block a user