Skip to main content

Type Alias: HierarchySourceWrapper<TProps>

HierarchySourceWrapper<TProps> = (next) => HierarchySource<TProps>

Defined in: model/hierarchy-source.ts:52

How a plugin claims the seam. Declared on the plugin's own hierarchySource member (ADR 0031); it receives the current occupant and may call it, the same way an ExtenderWrapper composes:

hierarchySource: (next) => (entry) => entry.props.phaseId ?? next(entry),

That reads: the phase id when there is one, otherwise whatever the next source says.

Type Parameters​

TProps​

TProps = Record<string, unknown>

Parameters​

next​

HierarchySource<TProps>

Returns​

HierarchySource<TProps>