Skip to content

How-To Guides

Use these guides when you already understand the core @ddgutierrezc/legato-contract reference surface and need practical implementation patterns.

GuideWhen to use it
Model a TrackYou need to construct valid Track objects, including optional metadata and transport headers.
Consume Events and PayloadsYou want strongly typed event handling with LEGATO_EVENT_NAMES, LegatoEventName, and LegatoEventPayload.
Validate Runtime InvariantsYou need defensive consumer-side validation based on exported contract constants.