Skip to content

Interface: FsWriteGuardOptions ​

Defined in: fs/src/builders/create-fs-write-guard-builder.ts:9

Configuration options for fs.writeGuard(options).

Defines glob patterns that deny write mutations (denyGlobs), optional exemptions (allowGlobs), and optional base-ref existence filtering (onlyExistingAtBaseRef).

Properties ​

PropertyModifierTypeDescriptionDefined in
allowGlobs?readonlyreadonly string[]Optional glob patterns exempted from denyGlobs.fs/src/builders/create-fs-write-guard-builder.ts:13
denyGlobsreadonlyreadonly string[]Glob patterns denying write mutations.fs/src/builders/create-fs-write-guard-builder.ts:11
onlyExistingAtBaseRef?readonlybooleanWhen true, blocks only paths that already existed at handle.baseRef.fs/src/builders/create-fs-write-guard-builder.ts:15

Released under the MIT License.