Skip to main content

Function: labelOf()

labelOf(node, fallback): string

Defined in: packages/core/src/core/hooks.ts:269

A child's display name, tolerating processables that predate getName().

getName() is a required member, but the runtime guards that decide "is this a Processable" only check process/getId/subscribeToAll — so a hand-rolled object, or one compiled against an older version of the interface, reaches a composite without it. Losing a label degrades a hook context; throwing kills the run. This is not classification: what the child is was already decided before we got here.

Parameters

node

unknown

fallback

string

Returns

string