From 4547fe5e5c474ba98e0296193c71d2ac0045b617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Thu, 4 Nov 2021 09:54:33 +0300 Subject: [PATCH] Fixed #1715 - DataTable wrong TypeScript definition for row click events --- src/components/datatable/DataTable.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/datatable/DataTable.d.ts b/src/components/datatable/DataTable.d.ts index 732fd8074..5e7596d18 100755 --- a/src/components/datatable/DataTable.d.ts +++ b/src/components/datatable/DataTable.d.ts @@ -106,8 +106,9 @@ declare class DataTable { $emit(eventName: 'sort', event: Event): this; $emit(eventName: 'filter', event: Event): this; $emit(eventName: 'value-change', value: any[]): this; - $emit(eventName: 'row-click', event: Event): this; - $emit(eventName: 'row-dblclick', event: Event): this; + $emit(eventName: 'row-click', event: {originalEvent: Event, data: any, index: number}): this; + $emit(eventName: 'row-dblclick', event: {originalEvent: Event, data: any, index: number}): this; + $emit(eventName: 'row-rightclick', event: {originalEvent: Event, data: any, index: number}): this; $emit(eventName: 'row-contextmenu', event: Event): this; $emit(eventName: 'row-select', event: {originalEvent: Event, data: any, index: number, type: string}): this; $emit(eventName: 'row-select-all', event: {originalEvent: Event, data: any}): this;