Creates a type-safe relay function for an option.
The options type defining all possible option variants
An option variant
A Relay function that accepts handlers for each option and an optional fallback
Creates a type-safe relay function for an option.