Skip to content

Function: createFsAllowWriteGlobsLeaseDelta() ​

ts
function createFsAllowWriteGlobsLeaseDelta(globs): LeaseDelta;

Defined in: fs/src/builders/create-fs-allow-write-globs-lease-delta.ts:14

Creates a serializable LeaseDelta unlocking writes to globs (fs.allowWriteGlobs(globs)).

Emits a grantedMatchers entry with a deterministic FsGlobMatcherNode (mode: 'write') that matches both exact normalized file paths (including bracketed routes) and POSIX globs.

Parameters ​

ParameterTypeDescription
globsreadonly string[]Exact file paths or POSIX glob patterns to unlock for writing.

Returns ​

LeaseDelta

Deeply frozen LeaseDelta capability grant.

Released under the MIT License.