@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration
Version:
An optional Pragmatic drag and drop package that enables rapid migration from react-beautiful-dnd to Pragmatic drag and drop
18 lines (17 loc) • 549 B
TypeScript
/**
* Each fragment consists of an attribute name, with an optional value.
*/
type SelectorFragment = {
attribute: string;
value?: string;
};
/**
* Queries an element based on the provided selector fragments.
*/
export declare function findElement(...fragments: SelectorFragment[]): HTMLElement | null;
export declare function findElementAll(...fragments: SelectorFragment[]): HTMLElement[];
/**
* Queries an element, ensuring it exists.
*/
export declare function getElement(...fragments: SelectorFragment[]): HTMLElement;
export {};