UNPKG

@blinkk/selective-edit

Version:
13 lines (12 loc) 441 B
/** * DOM helper functions. */ /** * Search the parent nodes of the element to find an parent * that has the given class. * * @param element DOM element to start search from. * @param classname CSS class to search for. */ export declare const findParentByClassname: (element: HTMLElement | null, classname: string) => HTMLElement | null; export declare const findParentDraggable: (target: HTMLElement | null) => HTMLElement | null;