# Written

interface in `@dioramajs/text/counter`

```ts
import type { Written } from '@dioramajs/text/counter'
```

A number as the text writes it: where it sits, its value, separators and grouping.

```ts
interface Written
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `decimals` | `number` |  |
| `end` | `number` |  |
| `group` | `string` | Group separator as written, '' for none. |
| `point` | `string` | Decimal separator as written, '' for none. |
| `primary` | `number` | Digits in the last integer group, and in the groups before it (2 in Indian grouping). |
| `secondary` | `number` |  |
| `start` | `number` | Offsets of its first digit and past its last in the text. |
| `value` | `number` |  |
| `width` | `number` | Integer digits as written: more than 1 only with leading zeros, as in 007. |

Defined in [packages/text/src/counter.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/text/src/counter.ts#L65).
