function createColumnHelper<TFeatures, TData>(): ColumnHelper<TFeatures, TData>;function createColumnHelper<TFeatures, TData>(): ColumnHelper<TFeatures, TData>;Defined in: helpers/columnHelper.ts:99
Creates helper functions for authoring column definitions with stronger value inference.
accessor infers TValue from an accessor key or accessor function, display creates non-data columns, group creates parent columns, and columns preserves tuple-level value types for arrays. At runtime these helpers only return column definition objects.
TFeatures extends TableFeatures
TData extends RowData
ColumnHelper<TFeatures, TData>
const helper = createColumnHelper<typeof _features, Person>() // _features is the result of `tableFeatures({})` helper
const columns = [
helper.display({ id: 'actions', header: 'Actions' }),
helper.accessor('firstName', {}),
helper.accessor((row) => row.lastName, { id: 'lastName' }),
]const helper = createColumnHelper<typeof _features, Person>() // _features is the result of `tableFeatures({})` helper
const columns = [
helper.display({ id: 'actions', header: 'Actions' }),
helper.accessor('firstName', {}),
helper.accessor((row) => row.lastName, { id: 'lastName' }),
]