@zenfs/core
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -36,3 +36,3 @@ import type { RequiredKeys } from 'utilium'; | ||
*/ | ||
disableAsyncCache: boolean; | ||
disableAsyncCache?: boolean; | ||
} | ||
@@ -39,0 +39,0 @@ /** |
@@ -72,6 +72,6 @@ import type { FileSystemMetadata } from '../filesystem.js'; | ||
}; | ||
type _fetch = typeof _Fetch; | ||
interface Fetch extends _fetch { | ||
type _Fetch = typeof _Fetch; | ||
interface Fetch extends _Fetch { | ||
} | ||
export declare const Fetch: Fetch; | ||
export {}; |
@@ -18,3 +18,3 @@ import type { Ino } from '../inode.js'; | ||
*/ | ||
export declare const _InMemory: { | ||
declare const _InMemory: { | ||
readonly name: "InMemory"; | ||
@@ -33,6 +33,6 @@ readonly isAvailable: () => boolean; | ||
}; | ||
type _inmemory = typeof _InMemory; | ||
interface InMemory extends _inmemory { | ||
type _InMemory = typeof _InMemory; | ||
interface InMemory extends _InMemory { | ||
} | ||
export declare const InMemory: InMemory; | ||
export {}; |
@@ -23,3 +23,3 @@ import { StoreFS } from './store/fs.js'; | ||
*/ | ||
export const _InMemory = { | ||
const _InMemory = { | ||
name: 'InMemory', | ||
@@ -26,0 +26,0 @@ isAvailable() { |
@@ -119,6 +119,6 @@ import type { File } from '../file.js'; | ||
}; | ||
type _overlay = typeof _Overlay; | ||
interface Overlay extends _overlay { | ||
type _Overlay = typeof _Overlay; | ||
interface Overlay extends _Overlay { | ||
} | ||
export declare const Overlay: Overlay; | ||
export {}; |
@@ -112,3 +112,3 @@ /// <reference types="node" resolution-mode="require"/> | ||
export declare function detachFS(port: RPC.Port, fs: FileSystem): void; | ||
export declare const _Port: { | ||
declare const _Port: { | ||
name: string; | ||
@@ -128,7 +128,7 @@ options: { | ||
}; | ||
isAvailable(): Promise<boolean>; | ||
isAvailable(): boolean; | ||
create(options: RPC.Options): PortFS; | ||
}; | ||
type _port = typeof _Port; | ||
interface Port extends _port { | ||
type _Port = typeof _Port; | ||
interface Port extends _Port { | ||
} | ||
@@ -135,0 +135,0 @@ export declare const Port: Port; |
@@ -213,3 +213,3 @@ import { resolveMountConfig } from '../../config.js'; | ||
} | ||
export const _Port = { | ||
const _Port = { | ||
name: 'Port', | ||
@@ -234,3 +234,3 @@ options: { | ||
}, | ||
async isAvailable() { | ||
isAvailable() { | ||
return true; | ||
@@ -237,0 +237,0 @@ }, |
@@ -46,2 +46,3 @@ /* Shared eslint rules */ | ||
'@typescript-eslint/no-unsafe-call': 'warn', | ||
'@typescript-eslint/restrict-plus-operands': 'off', | ||
}, | ||
@@ -48,0 +49,0 @@ }, |
{ | ||
"name": "@zenfs/core", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A filesystem, anywhere", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -44,3 +44,3 @@ import type { RequiredKeys } from 'utilium'; | ||
*/ | ||
disableAsyncCache: boolean; | ||
disableAsyncCache?: boolean; | ||
} | ||
@@ -47,0 +47,0 @@ |
@@ -178,5 +178,5 @@ import { Errno, ErrnoError } from '../error.js'; | ||
} 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; |
@@ -29,3 +29,3 @@ import type { Ino } from '../inode.js'; | ||
*/ | ||
export const _InMemory = { | ||
const _InMemory = { | ||
name: 'InMemory', | ||
@@ -48,5 +48,5 @@ isAvailable(): boolean { | ||
} 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; |
@@ -556,5 +556,5 @@ import { dirname } from '../emulation/path.js'; | ||
} 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; |
@@ -296,3 +296,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
export const _Port = { | ||
const _Port = { | ||
name: 'Port', | ||
@@ -319,3 +319,3 @@ | ||
async isAvailable(): Promise<boolean> { | ||
isAvailable(): boolean { | ||
return true; | ||
@@ -328,5 +328,5 @@ }, | ||
} 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; | ||
@@ -333,0 +333,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
22149
1982860