Skip to content

Commit

Permalink
The backend is now aliased to an interface
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Oct 10, 2024
1 parent 063a04e commit ac2f165
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export interface EmscriptenOptions {
FS: typeof FS;
}

export const Emscripten = {
const _Emscripten = {
name: 'EmscriptenFileSystem',

options: {
Expand All @@ -346,3 +346,7 @@ export const Emscripten = {
return new EmscriptenFS(options.FS);
},
} satisfies Backend<EmscriptenFS, EmscriptenOptions>;
type _Emscripten = typeof _Emscripten;
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
interface Emscripten extends _Emscripten {}
export const Emscripten: Emscripten = _Emscripten;

0 comments on commit ac2f165

Please sign in to comment.