@grafctory/gate - v0.18.0
    Preparing search index...

    Function driver

    • Creates a resource driver.

      Parameters

      • shape: Lazy<ResourceShape>

        The shape of the resource served, possibly deferred to break definition cycles

      • opts: { virtual?: boolean } = {}

        Driver options; if omitted, the resource is held as it stands

        • Optional Readonlyvirtual?: boolean

          Whether the resource is derived from the store rather than held in it, as when listing every instance of a class without a stored container. A virtual resource is served even if the store holds no such entry. Its collections list every resource of the class their range shape describes, not only those it links to. Virtual drivers support retrieval only: enabling a write method throws a TypeError

      Returns Driver

      A driver with no method enabled