From 909d2e994dc62b90da9f57ee5c84b2bdfd326e0c Mon Sep 17 00:00:00 2001 From: Uwe Quitter Date: Tue, 27 Jun 2017 15:45:52 +0200 Subject: [PATCH] Update index.d.ts In SelectRow interface type add an alternative type of number[] to the selected property. That resolves compiler errors if the key field of the row data is of type number. --- 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 06e965c04b..1b80e670fa 100644 --- a/types/react-bootstrap-table/index.d.ts +++ b/types/react-bootstrap-table/index.d.ts @@ -157,7 +157,7 @@ export interface SelectRow { Give an array data to perform which rows you want to be selected when table loading. The content of array should be the rowkey which you want to be selected. */ - selected?: string[]; + selected?: string[] | number[]; /** if true, the radio/checkbox column will be hide. You can enable this attribute if you enable clickToSelect and you don't want to show the selection column.