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 Parameter | Default type | Description |
|---|---|---|
TPartition extends string | string | Literal string union of partition identifiers. |
Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Unique identifier of the topology. |
options? | CreateTopologyBuilderState<TPartition> | Optional internal copy-on-write state. |
Returns
TopologyConfigBuilder<TPartition>
Frozen topology builder instance.