# ConvertResult

interface in `@dioramajs/glsl/convert`

```ts
import type { ConvertResult } from '@dioramajs/glsl/convert'
```

What `convert` returns.

```ts
interface ConvertResult
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `code` | `string` | The TSL module. |
| `declaration` | `string` | The companion `.d.ts`, with exact param types. |
| `diagnostics` | `readonly GlslDiagnostic[]` | Warnings and infos. Errors throw GlslError. |
| `includes` | `readonly string[]` | Included files, to watch. |
| `shader` | `Omit<GlslShader, 'build'>` | Shader metadata, as the module exports it. |
| `stats` | `{ readonly fixes: number; readonly glslLines: number; readonly tslLines: number }` | Line counts and the number of fixes applied. |

Defined in [packages/glsl/src/convert/index.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/glsl/src/convert/index.ts#L55).
