# Diagnostic (/docs/api/interfaces/Diagnostic)



Defined in: [packages/core/src/diagnostics.ts:18](https://github.com/austenstone/actio/blob/2b01e694a0f76521d8c073f3c6a2e48917d2c9d9/packages/core/src/diagnostics.ts#L18)

## Properties [#properties]

### code? [#code]

```ts
optional code?: string;
```

Defined in: [packages/core/src/diagnostics.ts:30](https://github.com/austenstone/actio/blob/2b01e694a0f76521d8c073f3c6a2e48917d2c9d9/packages/core/src/diagnostics.ts#L30)

Optional stable diagnostic code (e.g. `param-definition-invalid`).

***

### file? [#file]

```ts
optional file?: string;
```

Defined in: [packages/core/src/diagnostics.ts:22](https://github.com/austenstone/actio/blob/2b01e694a0f76521d8c073f3c6a2e48917d2c9d9/packages/core/src/diagnostics.ts#L22)

Source file name (for display).

***

### hint? [#hint]

```ts
optional hint?: string;
```

Defined in: [packages/core/src/diagnostics.ts:28](https://github.com/austenstone/actio/blob/2b01e694a0f76521d8c073f3c6a2e48917d2c9d9/packages/core/src/diagnostics.ts#L28)

Optional actionable hint.

***

### message [#message]

```ts
message: string;
```

Defined in: [packages/core/src/diagnostics.ts:20](https://github.com/austenstone/actio/blob/2b01e694a0f76521d8c073f3c6a2e48917d2c9d9/packages/core/src/diagnostics.ts#L20)

***

### range? [#range]

```ts
optional range?: Range;
```

Defined in: [packages/core/src/diagnostics.ts:24](https://github.com/austenstone/actio/blob/2b01e694a0f76521d8c073f3c6a2e48917d2c9d9/packages/core/src/diagnostics.ts#L24)

Source range, when known.

***

### severity [#severity]

```ts
severity: Severity;
```

Defined in: [packages/core/src/diagnostics.ts:19](https://github.com/austenstone/actio/blob/2b01e694a0f76521d8c073f3c6a2e48917d2c9d9/packages/core/src/diagnostics.ts#L19)

***

### source [#source]

```ts
source: DiagnosticSource;
```

Defined in: [packages/core/src/diagnostics.ts:26](https://github.com/austenstone/actio/blob/2b01e694a0f76521d8c073f3c6a2e48917d2c9d9/packages/core/src/diagnostics.ts#L26)

Which layer produced the diagnostic.


## Sitemap

Browse the full documentation: [Markdown sitemap](https://austenstone.github.io/actio/sitemap.md) · [XML sitemap](https://austenstone.github.io/actio/sitemap.xml)