From 038c29dc8dccc4c5910155d819fc86c96ba06b32 Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Mon, 12 Aug 2024 20:03:07 +0000 Subject: [PATCH] web/libav: move types to dedicated file --- web/src/lib/libav.ts | 15 +-------------- web/src/lib/types/libav.ts | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 14 deletions(-) create mode 100644 web/src/lib/types/libav.ts 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[], +} +