From c2a75f12056db5b474a43cbba70ed7439c3c5354 Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Thu, 9 Nov 2023 23:53:44 -0500 Subject: [PATCH] chore: add missing TS types --- lib/src/interfaces/interfaces.ts | 1 - lib/src/interfaces/multipleSelectOption.interface.ts | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/src/interfaces/interfaces.ts b/lib/src/interfaces/interfaces.ts index d06ed4afb..c9ed9bcf6 100644 --- a/lib/src/interfaces/interfaces.ts +++ b/lib/src/interfaces/interfaces.ts @@ -18,7 +18,6 @@ export interface HtmlStruct { export interface OptionRowData { text: string; value: string | number | boolean; - html?: HTMLElement; classes?: string; divider?: string; disabled?: boolean; diff --git a/lib/src/interfaces/multipleSelectOption.interface.ts b/lib/src/interfaces/multipleSelectOption.interface.ts index 38d2b129f..93d372863 100644 --- a/lib/src/interfaces/multipleSelectOption.interface.ts +++ b/lib/src/interfaces/multipleSelectOption.interface.ts @@ -193,10 +193,10 @@ export interface MultipleSelectOption extends MultipleSelectLocale { styler: (value: OptionRowData | OptGroupRowData) => string | boolean | null; /** Returns HTML label attribute of a DOM element */ - labelTemplate: (elm: any) => string; + labelTemplate: (elm: HTMLOptionElement) => string; - /** Returns HTML text template of a DOM element */ - textTemplate: (elm: any) => string; + /** Returns HTML text template of a DOM element as a string */ + textTemplate: (elm: HTMLOptionElement) => string; // -- // Events