Maps an ActionKind literal to the discriminated result shape. Omit TKind (undefined) to fall back to the AnyActionResult union.
ActionKind
result
TKind
undefined
AnyActionResult
Maps an
ActionKindliteral to the discriminatedresultshape. OmitTKind(undefined) to fall back to theAnyActionResultunion.