imballinst / react-bs-datatable

Bootstrap datatable without jQuery. Features include: filter, sort, pagination, checkbox, and control customization.
https://imballinst.github.io/react-bs-datatable
MIT License
60 stars 20 forks source link

Export some internal types #80

Closed KapitanOczywisty closed 2 years ago

KapitanOczywisty commented 3 years ago

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) {...}