@@ -284,13 +284,13 @@ declare module FixedDataTable {
284
284
*
285
285
* If you pass in a function, you will receive the same props object as the first argument.
286
286
*/
287
- header ?: any ;
287
+ header ?: string | __React . ReactElement < any > | ( ( props : CellProps ) => ( string | __React . ReactElement < any > ) ) ;
288
288
289
289
/**
290
290
* This is the body cell that will be cloned for this
291
291
* column. This can either be a string a React element,
292
292
* or a function that generates a React Element. Passing
293
- * in a string will render a default header cell with that
293
+ * in a string will render a default cell with that
294
294
* string. By default, the React element passed in can
295
295
* expect to receive the following props:
296
296
*
@@ -308,7 +308,7 @@ declare module FixedDataTable {
308
308
* If you pass in a function, you will receive the same
309
309
* props object as the first argument.
310
310
*/
311
- cell ?: any ;
311
+ cell ?: string | __React . ReactElement < any > | ( ( props : CellProps ) => ( string | __React . ReactElement < any > ) ) ;
312
312
313
313
/**
314
314
* The footer cell for this column. This can either be a
@@ -331,7 +331,7 @@ declare module FixedDataTable {
331
331
* If you pass in a function, you will receive the same
332
332
* props object as the first argument.
333
333
*/
334
- footer ?: any ;
334
+ footer ?: string | __React . ReactElement < any > | ( ( props : CellProps ) => ( string | __React . ReactElement < any > ) ) ;
335
335
336
336
/**
337
337
* This is used to uniquely identify the column, and is not
@@ -433,7 +433,7 @@ declare module FixedDataTable {
433
433
* If you pass in a function, you will receive the same props
434
434
* object as the first argument.
435
435
*/
436
- header : any ;
436
+ header : string | __React . ReactElement < any > | ( ( props : CellProps ) => ( string | __React . ReactElement < any > ) ) ;
437
437
}
438
438
439
439
/**
@@ -459,6 +459,11 @@ declare module FixedDataTable {
459
459
* );
460
460
*/
461
461
export interface CellProps {
462
+ /**
463
+ * The row index of the cell.
464
+ */
465
+ rowIndex ?: number
466
+
462
467
/**
463
468
* Outer height of the cell.
464
469
*/
@@ -472,7 +477,7 @@ declare module FixedDataTable {
472
477
/**
473
478
* Optional prop that if specified on the Column will be
474
479
* passed to the cell. It can be used to uniquely identify
475
- * which column is the cell is in.
480
+ * which column is the cell is in.
476
481
*/
477
482
columnKey ?: string | number ;
478
483
}
0 commit comments