Replies: 2 comments 1 reply
-
Same, and it's annoying |
Beta Was this translation helpful? Give feedback.
0 replies
-
For future visitors. Just found out two things:
import { permissionFilter } from "#app/components/tanstack-table/filters/permission";
...
columnHelper.accessor("action", {
header: "Permission",
enableColumnFilter: true,
cell: (info) => info.getValue(),
filterFn: permissionFilter as FilterFnOption<unknown>,
}), |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Pretty sure this is a pure Typescript problem/misunderstanding (...what isn't :) ? ) but I'm struggling to figure out the root cause.
I created a custom filter and custom aggregation function.
Now, for some reason, my table options require me to provide the
filterFns
andaggregationFns
properties even though I'm not doing any filtering or aggregation in my table.What can I do to not have to provide those properties?
Getting a type error that reads:
In another file, I define my custom filter and aggregation function
Beta Was this translation helpful? Give feedback.
All reactions