This commit is contained in:
Manav Rathi 2024-05-10 22:44:55 +05:30
parent 6283cccac3
commit c9d490ce20
No known key found for this signature in database

View file

@ -7,6 +7,24 @@ import {
inputPathPlaceholder,
outputPathPlaceholder,
} from "constants/ffmpeg";
// When we run tsc on CI, the line below errors out
//
// > Error: src/worker/ffmpeg.worker.ts(10,38): error TS2307: Cannot find module
// 'ffmpeg-wasm' or its corresponding type declarations.
//
// Building and running works fine. And this error does not occur when running
// tsc locally either.
//
// Of course, there is some misconfiguration, but we plan to move off our old
// fork and onto upstream ffmpeg-wasm, and the reason can be figured out then.
// For now, disable the error to allow the CI lint to complete.
//
// Note that we can't use @ts-expect-error since it doesn't error out when
// actually building!
//
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import { FFmpeg, createFFmpeg } from "ffmpeg-wasm";
export class DedicatedFFmpegWorker {