Skip to content

best way to save what you love

web/libav: move types to dedicated file

dumbmoron038c29dc8dcc
diff --git a/web/src/lib/libav.ts b/web/src/lib/libav.ts
index 4a5b2ac7..824e87b9 100644
--- a/web/src/lib/libav.ts
+++ b/web/src/lib/libav.ts
@@ -1,19 +1,6 @@
import mime from "mime";
import LibAV, { type LibAV as LibAVInstance } from "@imput/libav.js-remux-cli";
-
-type InputFileKind = "video" | "audio";
-
-type FileInfo = {
- type?: string | null,
- kind: InputFileKind,
- extension: string,
-}
-
-type RenderParams = {
- blob: Blob,
- output?: FileInfo,
- args: string[],
-}
+import type { FileInfo, RenderParams } from "./types/libav";
export default class LibAVWrapper {
libav!: LibAVInstance | null;
diff --git a/web/src/lib/types/libav.ts b/web/src/lib/types/libav.ts
new file mode 100644
index 00000000..daf168f4
--- /dev/null
+++ b/web/src/lib/types/libav.ts
@@ -0,0 +1,14 @@
+export type InputFileKind = "video" | "audio";
+
+export type FileInfo = {
+ type?: string | null,
+ kind: InputFileKind,
+ extension: string,
+}
+
+export type RenderParams = {
+ blob: Blob,
+ output?: FileInfo,
+ args: string[],
+}
+