Sanity Library Reference Docs
    Preparing search index...

    Type Alias ReplaceOp<Items, ReferenceItem>

    Represents a replace-operation that can be applied to an array

    type ReplaceOp<
        Items extends AnyArray,
        ReferenceItem extends IndexedSegment | KeyedSegment,
    > = {
        items: Items;
        referenceItem: ReferenceItem;
        type: "replace";
    }

    Type Parameters

    Index

    Properties

    items: Items
    referenceItem: ReferenceItem
    type: "replace"