UNPKG

choices.js

Version:

A vanilla JS customisable text input/select box plugin

10 lines (7 loc) 290 B
import { InputChoice } from './input-choice'; export type EventChoiceValueType<B extends boolean> = B extends true ? string : EventChoice; export interface EventChoice extends InputChoice { element?: HTMLOptionElement | HTMLOptGroupElement; groupValue?: string; keyCode?: number; }