# parseColumnShorthand

> _Since v0.7.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' }`

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

## Parameters

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

## Returns

`ColumnConfig<TRow>` - A ColumnConfig object

#### Example

```ts
parseColumnShorthand('name') → { field: 'name', header: 'Name' }
parseColumnShorthand('salary:number') → { field: 'salary', header: 'Salary', type: 'number' }
```
