Skip to content

Function: createFsScopedWriteGuardBuilder() ​

ts
function createFsScopedWriteGuardBuilder<TPartition>(partitionMap): FsScopedWriteGuardNode;

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

Compiles a passive FsScopedWriteGuardNode (fs:scoped-write) for fs.scopedWrite(partitionMap).

Restricts write mutations strictly to the union of member globs for the actor's activePartitions in partitionMap.

Type Parameters ​

Type ParameterDefault typeDescription
TPartition extends stringstringLiteral union of partition identifiers in partitionMap.

Parameters ​

ParameterTypeDescription
partitionMapFsPartitionMapNode<TPartition>Filesystem partition map AST node.

Returns ​

FsScopedWriteGuardNode

Deeply frozen FsScopedWriteGuardNode AST descriptor.

Released under the MIT License.