Function: validateComponentBinding()
Documentation / @xmachines/play-xstate / validateComponentBinding
function validateComponentBinding(view, catalog): void;Defined in: packages/play-xstate/src/catalog/validate-binding.ts:22
Validate component binding against catalog
Per CONTEXT.md:
- “Component references: String keys”
- “Mismatch detection: Both compile-time (TypeScript) and runtime validation”
Parameters
| Parameter | Type | Description |
|---|---|---|
view | ViewMetadata | View metadata from meta.view |
catalog | Catalog | Component catalog |
Returns
void
Example
const view = { component: "Dashboard", userId: "123" };validateComponentBinding(view, catalog);// Throws if 'Dashboard' not in catalogThrows
Error if component not found in catalog