Skip to content

Commit

Permalink
refactor: fix workaround for new typescript version (#1228)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Nov 27, 2024
1 parent e8752ac commit 999431f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 4 additions & 3 deletions examples/with-ffmpeg/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<ArrayBuffer>;
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",
);
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 999431f

Please sign in to comment.