The options type defining all possible option variants
Handles some options with a fallback handler for unmatched options.
Handlers receive a delegate function that can be called to invoke the fallback.
The return type of all handlers
The result from the matched handler or fallback
Handles all options with complete handlers and a fallback for delegation.
Handlers receive a delegate function that can be called to invoke the fallback, enabling factored common logic across multiple option handlers.
The return type of all handlers
The result from the matched handler or fallback
Relay.
Accepts handlers for each option and returns the result from the matched handler. Four usage patterns are supported:
R | undefinedRRRWhen a fallback is provided, handlers receive a delegate function to invoke it.