# SieveCheckResult

The SieveCheckResult type of the TypeScript SDK, which sieve.check take or answer.

```ts
type SieveCheckResult = {
  col?: number
  line?: number
  message?: string
  valid: boolean
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `col` | `number` | Optional. Column number of syntax error |
| `line` | `number` | Optional. Line number of syntax error |
| `message` | `string` | Optional. Error message if script compilation failed |
| `valid` | `boolean` | True if the Sieve script compiled without syntax errors |

## Used by

| Method | What it does |
| --- | --- |
| [`sieve.check`](/docs/sdks/typescript/sieve/check) | Validate a Sieve filter script without saving |
