Interface: DeltaPosition
Defined in: packages/core/src/domain/value-objects/selector.ts:46
Declares where a new node is inserted in an added delta entry.
At most one of after, before, first, last may be set. If only
parent is specified, the new node is appended as the last child of the
matched parent. If position is omitted entirely, the node is appended at
document root level.
Properties
after?
readonlyoptionalafter?:Selector
Defined in: packages/core/src/domain/value-objects/selector.ts:50
Inserts immediately after this sibling; falls back to append on no match.
before?
readonlyoptionalbefore?:Selector
Defined in: packages/core/src/domain/value-objects/selector.ts:52
Inserts immediately before this sibling; falls back to append on no match.
first?
readonlyoptionalfirst?:boolean
Defined in: packages/core/src/domain/value-objects/selector.ts:54
Inserts as the first child of the parent scope.
last?
readonlyoptionallast?:boolean
Defined in: packages/core/src/domain/value-objects/selector.ts:56
Inserts as the last child of the parent scope (default when no hint given).
parent?
readonlyoptionalparent?:Selector
Defined in: packages/core/src/domain/value-objects/selector.ts:48
Scopes the insertion to the children of the matched node.