Skip to content

Commit

Permalink
docs: fix meta data example (#5256)
Browse files Browse the repository at this point in the history
* docs: fix meta data example

* Update column-def.md

---------

Co-authored-by: Kevin Van Cott <[email protected]>
  • Loading branch information
Nathan Isaac and KevinVandy authored Jan 4, 2024
1 parent 43989f2 commit 6561267
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/core/column-def.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ meta?: ColumnMeta // This interface is extensible via declaration merging. See b
The meta data to associated with the column. We can access it anywhere when the column is available via `column.columnDef.meta`. This type is global to all tables and can be extended like so:

```tsx
import '@tanstack/react-table'
import '@tanstack/react-table' //or vue, svelte, solid, etc.
declare module '@tanstack/table-core' {
declare module '@tanstack/react-table' {
interface ColumnMeta<TData extends RowData, TValue> {
foo: string
}
Expand Down

0 comments on commit 6561267

Please sign in to comment.