TypeScript: missing threshold option in SearchPanes configuration
TypeScript: missing threshold option in SearchPanes configuration
in SearchPanes
Link to test case: https://stackblitz.com/edit/vitejs-vite-elqbsf21?file=src%2Fmain.ts,package.json&terminal=dev
Description of problem:
Hi,
I'm using DataTables 3.1.5 and SearchPanes 3.0.1 with TypeScript.
TypeScript rejects threshold inside searchPanes, although the option works at runtime.
The configuration uses IConfig, which extends DeepPartial<IDefaults>, but neither includes threshold. Adding threshold?: number to IConfig in datatables.net-searchpanes/types/types.d.ts resolves the error.
This question has an accepted answers - jump to answer
Answers
Many thanks. The defaults for the panes and pane class needs to be reworked to provide much clearer delineation. I'll be working on that when the SearchPanes rewrite happens
.
I've committed this change to address the problem. Thanks for letting me know about that.
Allan