# parseColumnShorthand

> _Since v3.0.0_

Parse a column shorthand string into a ColumnConfig.

Supports formats:
- `'fieldName'` → `{ field: 'fieldName', header: 'Field Name' }`
- `'fieldName:type'` → `{ field: 'fieldName', header: 'Field Name', type: 'type' }`

The `:type` suffix is only split off when it names a recognized primitive
type; otherwise the whole string is treated as the field name.

```ts
function parseColumnShorthand(shorthand: string): ColumnConfig<TRow>
```

## Parameters

| Name | Type | Description |
| ---- | ---- | ----------- |
| `shorthand` | <code>string</code> | The shorthand string (e.g., 'name', 'salary:number') |
