For AI agents: the documentation index is at /docs/llms.txt. Every page is also available as Markdown: add .md to its URL (index.md after a trailing slash), or send Accept: text/markdown.
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.