pivotick - v2.0.1
    Preparing search index...

    Type Alias DeleteDecision

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

    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: boolean
      • Optionaledges?: Edge[]
      • Optionalnodes?: Node[]
      • Optionalnotes?: Note[]
      • Optionalpersisted?: 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.