From 2ff117845584e0a5101473e8a143c76a37813558 Mon Sep 17 00:00:00 2001 From: James Prevett Date: Thu, 10 Oct 2024 11:13:25 -0500 Subject: [PATCH] Alias backend type to interface --- src/ZipFS.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ZipFS.ts b/src/ZipFS.ts index 3d7f926..8b7c118 100644 --- a/src/ZipFS.ts +++ b/src/ZipFS.ts @@ -217,7 +217,7 @@ export class ZipFS extends Readonly(Sync(FileSystem)) { } } -export const Zip = { +export const _Zip = { name: 'Zip', options: { @@ -246,3 +246,7 @@ export const Zip = { return new ZipFS(options.name ?? '', options.data); }, } satisfies Backend; +type _Zip = typeof _Zip; +// eslint-disable-next-line @typescript-eslint/no-empty-object-type +interface Zip extends _Zip {} +export const Zip: Zip = _Zip;