T
TanStack3y ago
wise-white

FilterFns declaration for one table forces its usage in other tables

Hello guys, I used example from the github for custom filter functions. However, declaring custom filter functions in FilterFns interface makes filterFns required in other tables, so I need to pass it to tables, where don't need filters at all. Or do the casting like that:
filterFns: '' as unknown as Record<keyof FilterFns, FilterFn<any>>
filterFns: '' as unknown as Record<keyof FilterFns, FilterFn<any>>
Is there another way to deal with it?
No description
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?