Add WORKERFS support (#581)
* README.md update * Workflow update * Action update * Workflow update * Workflow update * Added workerLoadURL to FFMessageLoadConfig * Add WORKERFS support * Imported WORKERFS types * Import WORKERFS types * Action update * Type updates * Export update * Updated classes * Package together workflow update * Cleanup * Restore CI.yml to upstream * Restore README.md to upstream * Restore classes.ts changes that are not related tp WORKERFS * Restore types.ts changes unrelated to WORERFS * Restore const.ts changes unrelated to WORKERFS * Updated mount to support any enabled filesystems. --------- Co-authored-by: Todd <todd@3dgamemarket.net>
This commit is contained in:
20
packages/types/types/index.d.ts
vendored
20
packages/types/types/index.d.ts
vendored
@@ -39,6 +39,23 @@ export interface Stat {
|
||||
blocks: number;
|
||||
}
|
||||
|
||||
export interface FSFilesystemWORKERFS {
|
||||
|
||||
}
|
||||
|
||||
export interface FSFilesystemMEMFS {
|
||||
|
||||
}
|
||||
|
||||
export interface FSFilesystems {
|
||||
WORKERFS: FSFilesystemWORKERFS;
|
||||
MEMFS: FSFilesystemMEMFS;
|
||||
}
|
||||
|
||||
export type FSFilesystem =
|
||||
| FSFilesystemWORKERFS
|
||||
| FSFilesystemMEMFS;
|
||||
|
||||
/**
|
||||
* Functions to interact with Emscripten FS library.
|
||||
*
|
||||
@@ -58,6 +75,9 @@ 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: FSFilesystem, data: WorkerFSMountConfig, path: string) => void;
|
||||
unmount: (path: string) => void;
|
||||
filesystems: FSFilesystems;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user