Skip to content

TS2322: Type 'ColumnDef<Product, string>' is not assignable to type 'ColumnDef<Product, unknown>'. #4384

Answered by locona
vresetnikov asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately, currently the 2322 error seems to occur unless you do the following.

export const productTableColumns = [

    columnHelper.accessor('name', {
        cell: info => info.getValue(),
        header: () => 'Name',
    }),
]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bonetunes
Comment options

Answer selected by vresetnikov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants