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:
Uwe Quitter
2017-06-27 15:45:52 +02:00
committed by GitHub
parent 86f817eefc
commit 909d2e994d

View File

@@ -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.