action

fun action(name: String, parameters: Map<String, MilanoType> = emptyMap(), result: MilanoType? = null, failure: MilanoType? = null): MilanoViewBuilder

Declares (or overrides) a custom action for this surface: the name, parameter shape, optional success result type, and optional failure payload type join the granted set for this builder only. Declarations type the payload; meaning is assigned by this surface's action handler.