diff --git a/examples/with-ffmpeg/app/page.tsx b/examples/with-ffmpeg/app/page.tsx index ed9c52ca1..f8a1afc51 100644 --- a/examples/with-ffmpeg/app/page.tsx +++ b/examples/with-ffmpeg/app/page.tsx @@ -101,11 +101,12 @@ const FfmpegTool: FC<{ file: File }> = ({ file }) => { }) { const handleDownload = async () => { const ffmpeg = ffmpegRef.current; - const data = (await ffmpeg.readFile(outputFileName)) as Uint8Array; + const data = (await ffmpeg.readFile( + outputFileName, + )) as Uint8Array; window.open( URL.createObjectURL( - // https://github.com/microsoft/TypeScript/issues/60579 - new Blob([data.buffer as BlobPart], { type: outputMimeType }), + new Blob([data.buffer], { type: outputMimeType }), ), "_blank", ); diff --git a/package.json b/package.json index efca7a992..211046bd0 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "eslint": "^9", "prettier": "^3.3.3", "prettier-plugin-tailwindcss": "^0.6.9", - "turbo": "^2.3.1" + "turbo": "^2.3.1", + "typescript": "^5.7.2" }, "prettier": { "trailingComma": "all", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9b2f43e2c..ab7cda340 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,6 +27,9 @@ importers: turbo: specifier: ^2.3.1 version: 2.3.1 + typescript: + specifier: ^5.7.2 + version: 5.7.2 apps/docs: dependencies: