Skip to content

Function: createFsPartitionMap() ​

ts
function createFsPartitionMap<TPartition>(topology, mapping): FsPartitionMapNode<TPartition>;

Defined in: fs/src/builders/create-fs-partition-map.ts:22

Compiles a passive FsPartitionMapNode (fs:partition-map) for fs.partitionMap(topology, mapping).

Associates each logical partition in topology with its physical implementation globs (globs) and protected public boundary surface globs (boundaryGlobs).

Type Parameters ​

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

Parameters ​

ParameterTypeDescription
topologyMaybeBuilder<TopologyNode<TPartition>>Relational topology AST node or builder.
mappingReadonly<Record<TPartition, FsPartitionPathMapping>>Per-partition member and boundary globs.

Returns ​

FsPartitionMapNode<TPartition>

Deeply frozen FsPartitionMapNode AST descriptor.

Released under the MIT License.