I think that some of the internal types should be exported, like PaginationProps or HeaderType. Some you can import from files, but some are not exported at all (like PaginationProps)
Example:
import { HeaderType } from "react-bs-datatable/lib/helpers/types";
export type TableHeaders = HeaderType[];
const headers : TableHeaders = [...];
import _P from "react-bs-datatable/lib/Pagination";
export type PaginationProps = Parameters<typeof _P>[0];
function CustomPagination(props: PaginationProps) {...}
I think that some of the internal types should be exported, like
PaginationProps
orHeaderType
. Some you can import from files, but some are not exported at all (likePaginationProps
)Example: