mirror of
https://github.com/Choices-js/Choices.git
synced 2024-04-26 19:30:31 +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 {
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue