MCPcopy
hub / github.com/primer/react / createColumnHelper

Function createColumnHelper

packages/react/src/DataTable/column.ts:72–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70}
71
72export function createColumnHelper<T extends UniqueRow>() {
73 function column(column: Column<T>): Column<T> {
74 return {
75 ...column,
76 id: column.id ?? column.field,
77 }
78 }
79
80 return {
81 column,
82 }
83}

Callers 3

Table.test.tsxFile · 0.90
DataTable.test.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected