From 3f8be6b39f12871708e3630af26455d736352ce5 Mon Sep 17 00:00:00 2001 From: Maarten Rijke Date: Fri, 1 Dec 2017 15:45:30 +0100 Subject: [PATCH] [react-bootstrap-table] Update trClassName signature The trClassName signature for the callback uses ReadonlyArray to type the row, but it should be any as its just one row that is passed, not an array. --- 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 0687891657..a07c49a764 100644 --- a/types/react-bootstrap-table/index.d.ts +++ b/types/react-bootstrap-table/index.d.ts @@ -217,7 +217,7 @@ export interface BootstrapTableProps extends Props { * return rowIndex % 2 == 0 ? "tr-odd" : "tr-even"; // return a class name. * } */ - trClassName?: string | ((rowData: ReadonlyArray, rowIndex: number) => string); + trClassName?: string | ((rowData: any, rowIndex: number) => string); /** * Enable row insertion by setting insertRow to true, default is false. * If you enable row insertion, there's a button on the upper left side of table.