web/libav: move types to dedicated file

This commit is contained in:
dumbmoron 2024-08-12 20:03:07 +00:00
parent b2288ed037
commit 038c29dc8d
No known key found for this signature in database
2 changed files with 15 additions and 14 deletions

View file

@ -1,19 +1,6 @@
import mime from "mime"; import mime from "mime";
import LibAV, { type LibAV as LibAVInstance } from "@imput/libav.js-remux-cli"; import LibAV, { type LibAV as LibAVInstance } from "@imput/libav.js-remux-cli";
import type { FileInfo, RenderParams } from "./types/libav";
type InputFileKind = "video" | "audio";
type FileInfo = {
type?: string | null,
kind: InputFileKind,
extension: string,
}
type RenderParams = {
blob: Blob,
output?: FileInfo,
args: string[],
}
export default class LibAVWrapper { export default class LibAVWrapper {
libav!: LibAVInstance | null; libav!: LibAVInstance | null;

View file

@ -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[],
}