Skip to content

Function: createFsGlobMatcherBuilder() ​

ts
function createFsGlobMatcherBuilder(globs, mode?): FsGlobMatcherNode;

Defined in: fs/src/builders/create-fs-glob-matcher-builder.ts:14

Compiles a passive FsGlobMatcherNode (fs:match-globs) for fs.matchGlobs(globs, mode).

Matches FsToolEffect paths against exact normalized file paths and POSIX glob patterns for reactive when.effects triggers and capability lease matching.

Parameters ​

ParameterTypeDefault valueDescription
globsreadonly string[]undefinedGlob patterns or exact normalized file paths to match.
mode?"read" | "write" | "any"'write'Access mode filter ('read' | 'write' | 'any').

Returns ​

FsGlobMatcherNode

Deeply frozen FsGlobMatcherNode AST descriptor.

Released under the MIT License.