mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 19:43:20 +08:00
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.
This commit is contained in:
2
types/react-bootstrap-table/index.d.ts
vendored
2
types/react-bootstrap-table/index.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user