Skip to content

Commit

Permalink
fix(ts): fix types for ember-tr onClick and onDoubleClick (#1117)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasnys authored Jan 8, 2025
1 parent d13b4a7 commit 678d037
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/components/ember-tr/component.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ export interface EmberTrSignature<
/**
* An action that is called when a row is clicked. Will be called with the row and the event.
*/
onClick?: ((row: RowType, event: Event) => void);
onClick?: (event: { event: Event, rowValue: RowType, rowMeta: TableRowMeta }) => void;

/**
* An action that is called when a row is double clicked. Will be called with the row and the event.
*/
onDoubleClick?: ((row: RowType, event: Event) => void);
onDoubleClick?: (event: { event: Event, rowValue: RowType, rowMeta: TableRowMeta }) => void;
};
Blocks: {
default: [
Expand Down

0 comments on commit 678d037

Please sign in to comment.