mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
35 lines
798 B
TypeScript
35 lines
798 B
TypeScript
// General types important to applications using stencil built components
|
|
export interface EventEmitter<T = any> {
|
|
emit: (data?: T) => CustomEvent<T>;
|
|
}
|
|
|
|
export interface StyleReactProps {
|
|
class?: string;
|
|
className?: string;
|
|
style?: { [key: string]: any };
|
|
}
|
|
|
|
export interface OverlayEventDetail<T = any> {
|
|
data?: T;
|
|
role?: string;
|
|
}
|
|
|
|
export interface OverlayInterface {
|
|
el: HTMLElement;
|
|
animated: boolean;
|
|
keyboardClose: boolean;
|
|
overlayIndex: number;
|
|
presented: boolean;
|
|
|
|
enterAnimation?: any;
|
|
leaveAnimation?: any;
|
|
|
|
didPresent: EventEmitter<void>;
|
|
willPresent: EventEmitter<void>;
|
|
willDismiss: EventEmitter<OverlayEventDetail>;
|
|
didDismiss: EventEmitter<OverlayEventDetail>;
|
|
|
|
present(): Promise<void>;
|
|
dismiss(data?: any, role?: string): Promise<boolean>;
|
|
}
|