Skip to content

@miy2/xml-api


Type Alias: ChangeEvent

ChangeEvent = { target?: ModelNode; transaction?: Transaction; type: "full"; } | { addedNodes?: ModelNode[]; nextSibling?: ModelNode | null; previousSibling?: ModelNode | null; removedNodes?: ModelNode[]; target: ModelNode; transaction?: Transaction; type: "structure"; } | { key: string; newValue: string | null; target: ModelNode; transaction?: Transaction; type: "attribute"; } | { newValue?: string; target: ModelNode; transaction?: Transaction; type: "text"; }

Event object emitted when the XML model changes.