@gmb/bitmark-parser - v7.2.0
    Preparing search index...

    Type Alias PatchValueFor<P, O>

    PatchValueFor: O extends "append"
        ? NonNullable<PathValue<AnyBit, P>> extends readonly (infer E)[]
            ? E
            : PathValue<AnyBit, P>
        : PathValue<AnyBit, P>

    Build a PatchEntry with the value typed from the literal path, resolved against AnyBit.

    For append, the value is typed as an element of the array at the path.

    Type Parameters

    • P extends string
    • O extends PatchOp
    patchEntry("instruction", "set", [{ type: "paragraph", content: [] }]);
    patchEntry("id", "append", "1234");
    patchEntry("cards[0].question", "delete");