From 07597f556f288c46afb520ac89ba3d3a238954e5 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: Tue, 15 Aug 2023 18:23:09 +0300 Subject: [PATCH] Fixed #4263 - Dropdown: Invalid slot typings --- components/lib/dropdown/Dropdown.d.ts | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/components/lib/dropdown/Dropdown.d.ts b/components/lib/dropdown/Dropdown.d.ts index 4147e3a701..85e83cd208 100755 --- a/components/lib/dropdown/Dropdown.d.ts +++ b/components/lib/dropdown/Dropdown.d.ts @@ -563,10 +563,14 @@ export interface DropdownSlots { * @param {Object} scope - clear icon slot's params. */ clearicon(scope: { + /** + * Style class of the clear icon + */ + class: any; /** * Clear icon click function. */ - onClick: void; + onClick: (event: Event) => void; }): VNode[]; /** * Custom dropdown icon template. @@ -574,7 +578,7 @@ export interface DropdownSlots { */ dropdownicon(scope: { /** - * Style class of the component + * Style class of the dropdown icon */ class: any; }): VNode[]; @@ -584,14 +588,20 @@ export interface DropdownSlots { */ loadingicon(scope: { /** - * Style class of the component + * Style class of the loading icon */ class: any; }): VNode[]; /** * Custom filter icon template. + * @param {Object} scope - filter icon slot's params. */ - filtericon(): VNode[]; + filtericon(scope: { + /** + * Style class of the filter icon + */ + class: any; + }): VNode[]; } /**