mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-08 00:26:34 +02:00
Fix types on Templates interface function signatures (#619)
* Fix types on Templates interface method signatures * Add missing type fixes
This commit is contained in:
parent
39b6eed395
commit
589578f420
22
types/index.d.ts
vendored
22
types/index.d.ts
vendored
|
@ -143,17 +143,17 @@ declare namespace Choices {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Templates {
|
interface Templates {
|
||||||
containerOuter?: (direction: string) => HTMLElement;
|
containerOuter?: (classNames: ClassNames, direction: string) => HTMLElement;
|
||||||
containerInner?: () => HTMLElement;
|
containerInner?: (classNames: ClassNames) => HTMLElement;
|
||||||
itemList?: () => HTMLElement;
|
itemList?: (classNames: ClassNames, isSelectOneElement: boolean) => HTMLElement;
|
||||||
placeholder?: (value: string) => HTMLElement;
|
placeholder?: (classNames: ClassNames, value: string) => HTMLElement;
|
||||||
item?: (data: any) => HTMLElement;
|
item?: (classNames: ClassNames, data: any, removeItemButton: boolean) => HTMLElement;
|
||||||
choiceList?: () => HTMLElement;
|
choiceList?: (classNames: ClassNames, isSelectOneElement: boolean) => HTMLElement;
|
||||||
choiceGroup?: (data: any) => HTMLElement;
|
choiceGroup?: (classNames: ClassNames, data: any) => HTMLElement;
|
||||||
choice?: (data: any) => HTMLElement;
|
choice?: (classNames: ClassNames, data: any) => HTMLElement;
|
||||||
input?: () => HTMLInputElement;
|
input?: (classNames: ClassNames) => HTMLInputElement;
|
||||||
dropdown?: () => HTMLElement;
|
dropdown?: (classNames: ClassNames) => HTMLElement;
|
||||||
notice?: (label: string) => HTMLElement;
|
notice?: (classNames: ClassNames, label: string) => HTMLElement;
|
||||||
option?: (data: any) => HTMLOptionElement;
|
option?: (data: any) => HTMLOptionElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue