Discriminated union representing a form lifecycle event.
Each variant carries contextual data about the form, and the type field
serves as the discriminant. Use a switch on event.type to narrow the type
and access variant-specific fields like buttonLabel and deepLinkUrl.
Discriminated union representing a form lifecycle event.
Each variant carries contextual data about the form, and the
typefield serves as the discriminant. Use aswitchonevent.typeto narrow the type and access variant-specific fields likebuttonLabelanddeepLinkUrl.Example usage: