/
githubmirror
/
ionic-framework
Обзор
Документация
Войти
/
githubmirror
/
ionic-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
core/src/components/input/input-interface.ts
21 строка
623 B
Liam DeBeasi
fix(input): string values are emitted (#27226)
18 апр 2023, 17:54
Не верифицирован
18 апр 2023, 17:54
cdb0627
Код
Авторство
О чём код?
/** * Values are converted to strings when emitted which is * why we do not have a `number` type here even though the * `value` prop accepts a `number` type. */ export interface InputChangeEventDetail { value?: string | null; event?: Event; } // We recognize that InputInput is not an ideal naming pattern for this type. // TODO (FW-2199): Explore renaming this type to something more appropriate. export interface InputInputEventDetail { value?: string | null; event?: Event; } export interface InputCustomEvent<T = InputChangeEventDetail> extends CustomEvent { detail: T; target: HTMLIonInputElement; }