Skip to content

Commit

Permalink
docs: Update migrating.md (#4889)
Browse files Browse the repository at this point in the history
  • Loading branch information
akraines committed May 31, 2023
1 parent 46b160d commit 606dfe2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/guide/migrating.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Types are now included in the base package, so you can remove the `@types/react-
### Update column definitions

- accessor was renamed to either `accessorKey` or `accessorFn` (depending on whether you are using a string or function)
- width, minWidth, maxWidth where renamed to size, minSize, maxSize
- Optionally, you can use the new `createColumnHelper` function around each column definition for better TypeScript hints. (You can still just use an array of column definitions if you prefer.)
- The first parameter is the accessor function or accessor string.
- The second parameter is an object of column options.
Expand Down

0 comments on commit 606dfe2

Please sign in to comment.