Skip to content

Commit 7fae434

Browse files
authored
docs: Remove extra typing for Column Defs when using helper (#4430)
When using an `accessor` type column helper in a top level column defs array where the array is also typed, you get the type error mentioned in #4382. It was mentioned that the solution here is to not type the array, so this PR removes the typing from the example in the docs.
1 parent fd3672a commit 7fae434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guide/column-defs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ type Person = {
4646
const columnHelper = createColumnHelper<Person>()
4747

4848
// Make some columns!
49-
const defaultColumns: ColumnDef<Person>[] = [
49+
const defaultColumns = [
5050
// Display Column
5151
columnHelper.display({
5252
id: 'actions',

0 commit comments

Comments
 (0)