Am I using columnHelper correctly?
When I try to use columnHelper, I am getting a typescript error
Expected 2 arguments, but got 1. That said, the code compiles and the page loads.
2 Replies
fascinating-indigo•3y ago
You need a second argument. I believe that
would work. It expects a second argument which is an object that accepts a bunch of different configuration options you can specify such as
size, header, enableGlobalFilter etc. etc.
With that being said, just an empty object {} would suffice to fix your typescript issues. I thinkconscious-sapphire•3y ago
The second parameter is an object with a required property
id , the rest of the properties are optional 🤗