Skip to content

Commit

Permalink
Renamed internal backend types
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Oct 10, 2024
1 parent d6e9fff commit 70d69bb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/backends/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const _Fetch = {
return new FetchFS(options);
},
} as const satisfies Backend<FetchFS, FetchOptions>;
type _fetch = typeof _Fetch;
type _Fetch = typeof _Fetch;
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
interface Fetch extends _fetch {}
interface Fetch extends _Fetch {}
export const Fetch: Fetch = _Fetch;
4 changes: 2 additions & 2 deletions src/backends/memory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const _InMemory = {
return fs;
},
} as const satisfies Backend<StoreFS<InMemoryStore>, { name?: string }>;
type _inmemory = typeof _InMemory;
type _InMemory = typeof _InMemory;
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
interface InMemory extends _inmemory {}
interface InMemory extends _InMemory {}
export const InMemory: InMemory = _InMemory;
4 changes: 2 additions & 2 deletions src/backends/overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ const _Overlay = {
return new OverlayFS(options);
},
} as const satisfies Backend<OverlayFS, OverlayOptions>;
type _overlay = typeof _Overlay;
type _Overlay = typeof _Overlay;
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
interface Overlay extends _overlay {}
interface Overlay extends _Overlay {}
export const Overlay: Overlay = _Overlay;
4 changes: 2 additions & 2 deletions src/backends/port/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,9 @@ const _Port = {
return new PortFS(options);
},
} satisfies Backend<PortFS, RPC.Options>;
type _port = typeof _Port;
type _Port = typeof _Port;
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
interface Port extends _port {}
interface Port extends _Port {}
export const Port: Port = _Port;

export async function resolveRemoteMount<T extends Backend>(port: RPC.Port, config: MountConfiguration<T>, _depth = 0): Promise<FilesystemOf<T>> {
Expand Down

0 comments on commit 70d69bb

Please sign in to comment.