From 22e081dd7c3ef019c8fef2b023b709fcfa000ce8 Mon Sep 17 00:00:00 2001 From: Adam Baker Date: Tue, 11 Oct 2022 09:12:23 -0400 Subject: [PATCH] Fixing types for row click event --- ember-table/src/components/table/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ember-table/src/components/table/index.ts b/ember-table/src/components/table/index.ts index 6add11f..ee99490 100644 --- a/ember-table/src/components/table/index.ts +++ b/ember-table/src/components/table/index.ts @@ -82,10 +82,10 @@ interface RowMetaSelect { single?: boolean; } -export interface RowClickEvent { +export interface RowClickEvent { event: MouseEvent; - rowValue: T; - rowMeta: RowMeta; + rowValue: R; + rowMeta: RowMeta; tableMeta?: TableMeta; } @@ -473,7 +473,7 @@ export interface TableArgs extends TBodyArgs, THeadArgs { * * @memberof TableArgs */ - onRowClick?: (rowClickEvent: RowClickEvent) => void; + onRowClick?: (rowClickEvent: RowClickEvent) => void; /** * Event to handle double click on row