From 3d91b9219af3a190bcf2ddff2fdf4722531e7094 Mon Sep 17 00:00:00 2001 From: James Ah Yong Date: Mon, 23 Oct 2017 18:02:05 -0400 Subject: [PATCH] [react-bootstrap-table] Fix paginationShowsTotal type (fixes #20684) (#20760) * Update paginationShowsTotal type (fixes #20684) * Forgot to surround definition with brackets. --- types/react-bootstrap-table/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-bootstrap-table/index.d.ts b/types/react-bootstrap-table/index.d.ts index 8286d28980..66f3f8786a 100644 --- a/types/react-bootstrap-table/index.d.ts +++ b/types/react-bootstrap-table/index.d.ts @@ -418,7 +418,7 @@ export interface Options { * `rowKeys` is the row keys which been deleted, you can call next function to apply this deletion. */ handleConfirmDeleteRow?: (next: Function, rowKeys: any[]) => void; - paginationShowsTotal?: boolean | ReactElement; + paginationShowsTotal?: boolean | ((start: number, to: number, total: number) => ReactElement); onSearchChange?: Function; onAddRow?: Function; onExportToCSV?: Function;