EXTENSION
AnyWorkflow
¶
Methods¶
render(state:context:)
¶
asAnyWorkflow()
¶
mapOutput(_:)
¶
Returns a new AnyWorkflow whose Output
type has been transformed into the given type.
-
Parameter transform: An escaping closure that maps the original output type into the new output type.
-
Returns: A type erased workflow with the new output type (the rendering type remains unchanged).
mapRendering(_:)
¶
Returns a new AnyWorkflow
whose Rendering
type has been transformed into the given type.
-
Parameter transform: An escaping closure that maps the original rendering type into the new rendering type.
-
Returns: A type erased workflow with the new rendering type (the output type remains unchanged).