Skip to content

normalizeColumns

Since v3.0.0

Normalize an array of column shorthands to ColumnConfig objects. Strings are expanded via parseColumnShorthand; objects pass through untouched.

function normalizeColumns(columns: ColumnShorthand<TRow>[]): ColumnConfig<TRow, ColumnFieldKey<TRow>>[]
NameTypeDescription
columnsColumnShorthand<TRow>[]Array of column shorthands (strings or ColumnConfig objects)