/
githubmirror
/
ionic-framework
Обзор
Документация
Войти
/
githubmirror
/
ionic-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
core/src/utils/element-interface.ts
28 строк
1014 B
Brandy Smith
chore(deps): update @stencil/core to v4.36.2 (#30587)
31 июл 2025, 18:35
Не верифицирован
31 июл 2025, 18:35
6203b88
Код
Авторство
О чём код?
// The interfaces in this file are used to make sure our components // have the correct properties defined that are needed to pass to // the native HTML elements they render. The HTMLStencilElement interface // extends HTMLElement to provide Stencil-specific functionality like // componentOnReady() and proper children handling. export interface HTMLStencilElement extends HTMLElement { componentOnReady(): Promise<this>; /** * Stencil patches `el.children` to behave like calling `el.children` on an * element with shadow DOM even though the component is not a shadow DOM element. * To allow components to work properly we need to access the original accessor * for this property which is `__children`. */ __children?: HTMLCollection; } export interface AnchorInterface { href: string | undefined; target: string | undefined; rel: string | undefined; download: string | undefined; } export interface ButtonInterface { type: 'submit' | 'reset' | 'button'; disabled: boolean; }