effect-tea-persistent
    Preparing search index...

    Interface Each<State, Id, P>

    Children by id, as the entries an optic finds in the parent's state: every child there is listed once, and one optic says both where a child is and which children are there (decision 0133). An id is compared by what its schema encodes it to, as a key's parameter is.

    interface Each<State, Id, P> {
        at: Optional<State, readonly (readonly [Id, StateOf<P>])[]>;
        id: Codec<Id, Json>;
        kind: "each";
        part: P;
    }

    Type Parameters

    • State
    • Id
    • P
    Index
    at: Optional<State, readonly (readonly [Id, StateOf<P>])[]>

    The children in the parent's state, each its id and its state.

    id: Codec<Id, Json>

    The schema of a child's id, which a message to the child carries.

    kind: "each"
    part: P

    The part each child runs.