FilterFnOption does not pick up keys in FilterFns from declaration file
I'm using
createColumnHelper
to create columns, and for one column im trying to use a custom filter function. I do have this filter function registered in my Table, so table
knows how to invoke it correctly.
However when i go to build, i get this typescript error that its not assignable Type '"numberInRangeOptional"' is not assignable to type 'FilterFnOption<FooBarItem> | undefined'.
Does anyone have any tips here? In my filter render i do check the column definition's filterFn for a render logic thing, but could change that to depend on meta.filter
if needed.

1 Reply
fair-roseOP•3y ago
In my filter render i do check the column definition's filterFn for a render logic thing
function.name
actually solves my problem, so i'm going with referencing the filter function by reference instead of string to solve build issues.