Skip to content

Commit

Permalink
Fixing types for row click event
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerac4 committed Oct 11, 2022
1 parent 79c7a31 commit 22e081d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ember-table/src/components/table/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ interface RowMetaSelect {
single?: boolean;
}

export interface RowClickEvent<T, TM> {
export interface RowClickEvent<R, TM> {
event: MouseEvent;
rowValue: T;
rowMeta: RowMeta<T>;
rowValue: R;
rowMeta: RowMeta<R>;
tableMeta?: TableMeta<TM>;
}

Expand Down Expand Up @@ -473,7 +473,7 @@ export interface TableArgs<R, F, TM> extends TBodyArgs<R, TM>, THeadArgs<TM> {
*
* @memberof TableArgs
*/
onRowClick?: <T>(rowClickEvent: RowClickEvent<T, TM>) => void;
onRowClick?: (rowClickEvent: RowClickEvent<R, TM>) => void;

/**
* Event to handle double click on row
Expand Down

0 comments on commit 22e081d

Please sign in to comment.