mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
chore: sync
This commit is contained in:
6
core/src/interface.d.ts
vendored
6
core/src/interface.d.ts
vendored
@ -32,6 +32,7 @@ export { TabsCustomEvent } from './components/tabs/tabs-interface';
|
||||
export { TextareaCustomEvent } from './components/textarea/textarea-interface';
|
||||
export { ToastOptions } from './components/toast/toast-interface';
|
||||
export { ToggleCustomEvent } from './components/toggle/toggle-interface';
|
||||
export { BackButtonEvent, BackButtonEventDetail } from './utils/hardware-back-button';
|
||||
|
||||
// Types from utils
|
||||
export {
|
||||
@ -140,17 +141,12 @@ export type ComponentRef = Function | HTMLElement | string | null;
|
||||
// eslint-disable-next-line
|
||||
export type ComponentProps<T = null> = { [key: string]: any };
|
||||
export type CssClassMap = { [className: string]: boolean };
|
||||
export type BackButtonEvent = CustomEvent<BackButtonEventDetail>;
|
||||
|
||||
export interface FrameworkDelegate {
|
||||
attachViewToDom(container: any, component: any, propsOrDataObj?: any, cssClasses?: string[]): Promise<HTMLElement>;
|
||||
removeViewFromDom(container: any, component: any): Promise<void>;
|
||||
}
|
||||
|
||||
export interface BackButtonEventDetail {
|
||||
register(priority: number, handler: (processNextHandler: () => void) => Promise<any> | void): void;
|
||||
}
|
||||
|
||||
export interface KeyboardEventDetail {
|
||||
keyboardHeight: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user