@metreeca/keep
    Preparing search index...

    Type Alias StoreUpdate<S>

    Store update request.

    Names the resource to store with update or insert, the shape describing it and the complete state replacing its current data.

    type StoreUpdate<S extends Lazy<ResourceShape>> = {
        entry: Reference;
        shape: S;
        state: Draft<S>;
    }

    Type Parameters

    • S extends Lazy<ResourceShape>

      The shape driving the persistence, describing the state

    Index

    Properties

    Properties

    Readonlyentry

    entry: Reference

    Absolute identifier of the resource to be persisted.

    shape: S

    Resource shape state is validated against, possibly deferred to break definition cycles.

    state: Draft<S>

    Complete state for the resource, as shape describes it, replacing any existing data; its id, if stated, must match entry.