Skip to content

pivotick v3.0.0


pivotick / InterractionCallbacks / DeleteDecision

Type Alias: DeleteDecision ​

DeleteDecision = boolean | { accept: boolean; edges?: Edge[]; nodes?: Node[]; notes?: Note[]; persisted?: boolean; }

Defined in: interfaces/InterractionCallbacks.ts:508

The decision returned by InterractionCallbacks.onBeforeDelete.

true deletes the whole request, false vetoes it. The object form (with accept: true) narrows the delete: each supplied array replaces that kind's requested set, and an omitted key leaves it as requested — so { accept: true } matches true, and { accept: true, nodes: [] } deletes no nodes.

Type Declaration ​

boolean

{ accept: boolean; edges?: Edge[]; nodes?: Node[]; notes?: Note[]; persisted?: boolean; }

accept ​

accept: boolean

edges? ​

optional edges: Edge[]

nodes? ​

optional nodes: Node[]

notes? ​

optional notes: Note[]

persisted? ​

optional persisted: boolean

The consumer wrote this deletion through to its own backend — only the consumer can know a write happened, so only the consumer can declare it. The history row is listed and never reversed: undo issues no compensating write, so restoring these would put back what the record of truth no longer has.