Skip to content

Backend

Defined in: src/backends/backend.ts:63

A backend

FS extends FileSystem = FileSystem

TOptions extends object = object

name: string

Defined in: src/backends/backend.ts:72

A name to identify the backend.


options: OptionsConfig<TOptions>

Defined in: src/backends/backend.ts:77

Describes all of the options available for this backend.

create(options): FS | Promise<FS>

Defined in: src/backends/backend.ts:67

Create a new instance of the backend

TOptions & Partial<SharedConfig>

FS | Promise<FS>


optional isAvailable(config): boolean | Promise<boolean>

Defined in: src/backends/backend.ts:88

Whether the backend is available in the current environment. It supports checking synchronously and asynchronously

Returns ‘true’ if this backend is available in the current environment. For example, a backend using a browser API will return ‘false’ if the API is unavailable

TOptions

boolean | Promise<boolean>