---
url: /api/kiln/functions/asRecording.md
---
[Kiln API](../../index.md) / [kiln](../index.md) / asRecording

# Function: asRecording()

```ts
function asRecording(value, source?): Recording;
```

Checks a parsed JSON value is a recording, with a message that says what is wrong.

## Parameters

| Parameter | Type | Default value |
| ------ | ------ | ------ |
| `value` | `unknown` | `undefined` |
| `source` | `string` | `'recording'` |

## Returns

[`Recording`](../interfaces/Recording.md)
