mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web/libav: move types to dedicated file
This commit is contained in:
parent
b2288ed037
commit
038c29dc8d
2 changed files with 15 additions and 14 deletions
|
@ -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;
|
||||
|
|
14
web/src/lib/types/libav.ts
Normal file
14
web/src/lib/types/libav.ts
Normal 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[],
|
||||
}
|
||||
|
Loading…
Reference in a new issue