20 lines
687 B
TypeScript
20 lines
687 B
TypeScript
interface HTMLExpandElement extends HTMLElement {
|
|
_parent?: (Node & ParentNode & HTMLElement) | null;
|
|
_initialStyle?: {
|
|
transition: string;
|
|
overflow: string;
|
|
height?: string | null;
|
|
width?: string | null;
|
|
};
|
|
}
|
|
export default function (expandedParentClass?: string, type?: 'x' | 'y' | 'both'): {
|
|
onBeforeEnter(el: HTMLExpandElement): void;
|
|
onEnter(el: HTMLExpandElement): void;
|
|
onAfterEnter: (el: HTMLExpandElement) => void;
|
|
onEnterCancelled: (el: HTMLExpandElement) => void;
|
|
onLeave(el: HTMLExpandElement): void;
|
|
onAfterLeave: (el: HTMLExpandElement) => void;
|
|
onLeaveCancelled: (el: HTMLExpandElement) => void;
|
|
};
|
|
|