Skip to content

Commit

Permalink
Alias backend type to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Oct 10, 2024
1 parent 0d9041a commit 2ff1178
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ZipFS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class ZipFS extends Readonly(Sync(FileSystem)) {
}
}

export const Zip = {
export const _Zip = {
name: 'Zip',

options: {
Expand Down Expand Up @@ -246,3 +246,7 @@ export const Zip = {
return new ZipFS(options.name ?? '', options.data);
},
} satisfies Backend<ZipFS, ZipOptions>;
type _Zip = typeof _Zip;
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
interface Zip extends _Zip {}
export const Zip: Zip = _Zip;

0 comments on commit 2ff1178

Please sign in to comment.