Skip to content

Function: createTopologyBuilder() ​

ts
function createTopologyBuilder<TPartition>(id, options?): TopologyConfigBuilder<TPartition>;

Defined in: builders/create-topology-builder.ts:66

Creates a fluent ConfigurableTopologyBuilder for P.topology(id).

Validates the partition dependency DAG at .partitions(...) call time and exposes .dependentsOf(partitionId) and .affectedBy(partitionId) graph queries.

Type Parameters ​

Type ParameterDefault typeDescription
TPartition extends stringstringLiteral string union of partition identifiers.

Parameters ​

ParameterTypeDescription
idstringUnique identifier of the topology.
options?CreateTopologyBuilderState<TPartition>Optional internal copy-on-write state.

Returns ​

TopologyConfigBuilder<TPartition>

Frozen topology builder instance.

Released under the MIT License.