---
title: "Type Alias ActionResultForKind<TKind>"
url: "https://www.metabase.com/docs/latest/embedding/sdk/api/ActionResultForKind"
version: "65"
---

> For the complete documentation index, see [llms.txt](https://www.metabase.com/docs/llms.txt).

# Type Alias ActionResultForKind<TKind>

```ts
type ActionResultForKind<TKind> = TKind extends "create"
  ? ActionResultForCreate
  : TKind extends "update"
    ? ActionResultForUpdate
    : TKind extends "delete"
      ? ActionResultForDelete
      : TKind extends "sql"
        ? ActionResultForSql
        : AnyActionResult;
```

Maps an `ActionKind` literal to the discriminated `result` shape. Omit
`TKind` (`undefined`) to fall back to the `AnyActionResult` union.

## Type Parameters

| Type Parameter                                                       |
| :------------------------------------------------------------------- |
| `TKind` _extends_ [`ActionKind`](https://www.metabase.com/docs/latest/embedding/sdk/api/ActionKind.md) \| `undefined` |
