From 9d534e16935ce12f7a3a5c77134e62790b83a2f7 Mon Sep 17 00:00:00 2001 From: James Prevett Date: Thu, 10 Oct 2024 11:14:37 -0500 Subject: [PATCH] Alias backend to interface --- src/IsoFS.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/IsoFS.ts b/src/IsoFS.ts index 07737a9..a5e6af1 100644 --- a/src/IsoFS.ts +++ b/src/IsoFS.ts @@ -210,7 +210,7 @@ export class IsoFS extends Readonly(Sync(FileSystem)) { } } -export const Iso = { +export const _Iso = { name: 'Iso', isAvailable(): boolean { @@ -234,3 +234,7 @@ export const Iso = { return new IsoFS(options); }, } as const satisfies Backend; +type _Iso = typeof _Iso; +// eslint-disable-next-line @typescript-eslint/no-empty-object-type +interface Iso extends _Iso {} +export const Iso: Iso = _Iso;