From 589578f420904b4c0383674d5866e9270e67791a Mon Sep 17 00:00:00 2001 From: Duane Cilliers Date: Wed, 2 Oct 2019 10:08:34 +0200 Subject: [PATCH] Fix types on Templates interface function signatures (#619) * Fix types on Templates interface method signatures * Add missing type fixes --- types/index.d.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 1e23ab0..df78237 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -143,17 +143,17 @@ declare namespace Choices { } interface Templates { - containerOuter?: (direction: string) => HTMLElement; - containerInner?: () => HTMLElement; - itemList?: () => HTMLElement; - placeholder?: (value: string) => HTMLElement; - item?: (data: any) => HTMLElement; - choiceList?: () => HTMLElement; - choiceGroup?: (data: any) => HTMLElement; - choice?: (data: any) => HTMLElement; - input?: () => HTMLInputElement; - dropdown?: () => HTMLElement; - notice?: (label: string) => HTMLElement; + containerOuter?: (classNames: ClassNames, direction: string) => HTMLElement; + containerInner?: (classNames: ClassNames) => HTMLElement; + itemList?: (classNames: ClassNames, isSelectOneElement: boolean) => HTMLElement; + placeholder?: (classNames: ClassNames, value: string) => HTMLElement; + item?: (classNames: ClassNames, data: any, removeItemButton: boolean) => HTMLElement; + choiceList?: (classNames: ClassNames, isSelectOneElement: boolean) => HTMLElement; + choiceGroup?: (classNames: ClassNames, data: any) => HTMLElement; + choice?: (classNames: ClassNames, data: any) => HTMLElement; + input?: (classNames: ClassNames) => HTMLInputElement; + dropdown?: (classNames: ClassNames) => HTMLElement; + notice?: (classNames: ClassNames, label: string) => HTMLElement; option?: (data: any) => HTMLOptionElement; }