Skip to content
Discussion options

You must be logged in to vote

Column callbacks take the row type, so a testA column cannot go in testB columns. Make it more generic:

const aColumn = <T extends testA>() =>
  createColumnHelper<AppFeatures, T>().accessor((row) => row.a, { id: 'a' })

const columns = columnHelperTestB.columns([aColumn<testB>(), columnB])

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by andredewaard
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants