interface UseBootstrapOptions<T> {
    key?: string;
    onNoDocument?: ((repo) => DocHandle<T>);
    onInvalidAutomergeUrl?(repo, error): DocHandle<T>;
}

Type Parameters

  • T

Properties

key?: string

Key to use for the URL hash and localStorage

onNoDocument?: ((repo) => DocHandle<T>)

Function returning a document handle called if lookup fails. Defaults to repo.create()

Type declaration

    • (repo): DocHandle<T>
    • Function returning a document handle called if lookup fails. Defaults to repo.create()

      Parameters

      Returns DocHandle<T>

Methods

Generated using TypeDoc