@metreeca/keep
    Preparing search index...

    Type Alias StoreCreate<S, T>

    Store creation request.

    Names the resource collecting a new one with create, the property holding the collection and the initial state of the new resource.

    type StoreCreate<S extends Lazy<ResourceShape>, T extends Slice<S, T>> = {
        entry: Reference;
        shape: S;
        model: T;
        state: Draft<S, T>;
    }

    Type Parameters

    • S extends Lazy<ResourceShape>

      The shape driving the creation, describing the collecting resource

    • T extends Slice<S, T>

      The collection slice, naming the collecting property

    Index

    Properties

    Properties

    Readonlyentry

    entry: Reference

    Absolute identifier of the resource collecting the new one.

    shape: S

    Resource shape the creation is validated against, describing the collecting resource, possibly deferred to break definition cycles.

    model: T

    Collection slice naming the multi-valued property of shape that collects the new resource.

    state: Draft<S, T>

    Initial state of the new resource; an explicit id must be nested under entry.