Describe the bug
import type { DataTableOptions } from "simple-datatables";
const dataTableOptions: DataTableOptions = {
searchable: false,
perPageSelect: false,
sortable: true
}
The above perPageSelect: false has a type error: Type 'boolean' is not assignable to type 'number[]'.ts(2322)
(property) DataTableOptions.perPageSelect?: number[] | undefined.
According to the doc, false can be used.
- The following
["All",-1] is from the first demo and it has a type error: Type '[string, number]' is not assignable to type 'number'.
const dataTableOptions: DataTableOptions = {
perPageSelect: [5, 10, 15, ["All", -1]],
...
}