Interface Backend<FS, TOptions>

A backend

interface Backend<FS, TOptions> {
    name: string;
    options: OptionsConfig<TOptions>;
    create(options): FS | Promise<FS>;
    isAvailable(): boolean | Promise<boolean>;
}

Type Parameters

Properties

Methods

Properties

name: string

A name to identify the backend.

Describes all of the options available for this backend.

Methods

  • 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

    Returns boolean | Promise<boolean>