# CommandRejection (@salmonui/data-grid/engine)

> The CommandRejection interface of @salmonui/data-grid/engine: Returned from reduce through ctx.reject(reason).

Canonical: https://salmonui.dev/docs/reference/data-grid/engine/CommandRejection

```ts
import type { CommandRejection } from '@salmonui/data-grid/engine';
```

Entry index: https://salmonui.dev/docs/reference/data-grid/engine (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine.md).

## Reference

Kind: interface

```ts
interface CommandRejection {
    readonly rejected: true;
    readonly reason: string;
    readonly state?: unknown;
}
```

Returned from `reduce` through `ctx.reject(reason)`.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `rejected` | `readonly rejected: true;` |  |  |
| `reason` | `readonly reason: string;` |  |  |
| `state` | `readonly state?: unknown;` | optional | State to publish although the command is rejected (validation errors of a refused commit). |
