applyOps
Apply a list of AtomicOps to a NogginDocument in-place and validate the result. Used by providers inside their apply(); also useful for offline document manipulation and tests. Throws NogginError if any op references missing data or the resulting document is malformed.
function applyOps(doc: NogginDocument, ops: readonly AtomicOp[]): NogginDocument;
Apply a list of AtomicOps to a NogginDocument in-place, then validate. Used by providers inside their apply(); also useful for offline document manipulation. Throws NogginError if any op references missing data or the resulting document is malformed.
Parameters
| Parameter | Type |
|---|---|
doc | NogginDocument |
ops | readonly AtomicOp[] |