# isCancel

function in `@dioramajs/diorama/core`

```ts
import { isCancel } from '@dioramajs/diorama/core'
```

Whether a hook result is a `cancel()`.

```ts
function isCancel(value: unknown): value is Cancel
```

| Parameter | Type | Description |
| --- | --- | --- |
| `value` | `unknown` |  |

Also exported from `@dioramajs/core`.

Defined in [packages/core/src/kernel/hooks.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/core/src/kernel/hooks.ts#L16).
