Host-owned client UX permission callback for protected mutations.
- Package
@sheetwrite/core
- Source
packages/core/src/types/document.ts#L201
Declaration
export type ProtectionResolver = (
request: ProtectionRequestinterface ProtectionRequest {
protectedRange: Readonly<ProtectedRange>;
operation: Readonly<DocumentOp>;
commitReason: CommitReason;
}interface ProtectionRequest {
protectedRange: Readonly<ProtectedRange>;
operation: Readonly<DocumentOp>;
commitReason: CommitReason;
}interface ProtectionRequest {
protectedRange: Readonly<ProtectedRange>;
operation: Readonly<DocumentOp>;
commitReason: CommitReason;
}Local operation and protected-range context supplied to the host policy.API reference →,