Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
LostBeard committed Sep 13, 2023
1 parent 69d6a3b commit 71ac16f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 28 deletions.
1 change: 0 additions & 1 deletion packages/ffmpeg/src/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export enum FFMessageType {
DOWNLOAD = "DOWNLOAD",
PROGRESS = "PROGRESS",
LOG = "LOG",

MOUNT = "MOUNT",
UNMOUNT = "UNMOUNT",
FILESYSTEMS = "FILESYSTEMS",
Expand Down
19 changes: 1 addition & 18 deletions packages/ffmpeg/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,21 +164,4 @@ export interface FFMessageEventCallback {
type: string;
data: CallbackData;
};
}

// export type FSFilesystem =
// | FSFilesystemWORKERFS
// | FSFilesystemMEMFS;

// export interface FSFilesystemWORKERFS {

// }

// export interface FSFilesystemMEMFS {

// }

// export interface FSFilesystems {
// WORKERFS?: FSFilesystemWORKERFS;
// MEMFS?: FSFilesystemMEMFS;
// }
}
9 changes: 1 addition & 8 deletions packages/ffmpeg/src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@
/// <reference lib="esnext" />
/// <reference lib="webworker" />

import type {
FFmpegCoreModule,
FFmpegCoreModuleFactory,
FSFilesystem,
FSFilesystemWORKERFS,
FSFilesystemMEMFS,
FSFilesystems,
} from "@ffmpeg/types";
import type { FFmpegCoreModule, FFmpegCoreModuleFactory } from "@ffmpeg/types";
import type {
FFMessageEvent,
FFMessageLoadConfig,
Expand Down
2 changes: 1 addition & 1 deletion packages/types/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export interface FS {
isFile: (mode: number) => boolean;
/** mode is a numeric notation of permission, @see [Numeric Notation](https://en.wikipedia.org/wiki/File-system_permissions#Numeric_notation) */
isDir: (mode: number) => boolean;
mount: (fileSystemType: FSFilesystemWORKERFS, data: WorkerFSMountConfig, path: string) => void;
mount: (fileSystemType: FSFilesystem, data: WorkerFSMountConfig, path: string) => void;
unmount: (path: string) => void;
filesystems: FSFilesystems;
}
Expand Down

0 comments on commit 71ac16f

Please sign in to comment.