New interface for passedElement

This commit is contained in:
Arthur Vasconcelos 2017-11-29 07:39:19 -02:00 committed by Josh Johnson
parent 06e18c528e
commit 4d5ab91a72

10
types/index.d.ts vendored
View file

@ -173,6 +173,13 @@ declare namespace Choices {
noChoices?: string; noChoices?: string;
} }
interface passedElement {
classNames: Choices.ClassNames,
element: HTMLElement,
isDisabled: boolean,
parentInstance: Choices;
}
/** /**
* Choices options interface * Choices options interface
* *
@ -660,8 +667,7 @@ export default class Choices {
currentValue: string; currentValue: string;
// Element // Element
element: HTMLElement passedElement: Choices.passedElement;
passedElement: HTMLElement;
// Checks // Checks
isTextElement: boolean; isTextElement: boolean;