From 678d037b9f8b302a8b2a8eb0123e4524a03b88d6 Mon Sep 17 00:00:00 2001 From: Lukas Nys Date: Wed, 8 Jan 2025 15:51:37 +0100 Subject: [PATCH] fix(ts): fix types for ember-tr onClick and onDoubleClick (#1117) --- types/components/ember-tr/component.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/components/ember-tr/component.d.ts b/types/components/ember-tr/component.d.ts index e6919d81b..55d9e5151 100644 --- a/types/components/ember-tr/component.d.ts +++ b/types/components/ember-tr/component.d.ts @@ -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: [