Repository URL to install this package:
|
Version:
2.8.0-studio-release ▾
|
/**
* also available from 'fbjs'
*/
export declare const canUseDOM: boolean;
/**
* @description sometimes this throws, so we wrap this one function and scope the easily-deopted of trycatch
*/
export declare function removeElement(element: Element): boolean;
/**
* @todo @@perf at least cache/memoize these functions to reduce dom reads
*/
export declare function getElementOrCreate(id: string): HTMLElement;
export declare function hasElementFor(idOrElement: string | HTMLElement): boolean;
export declare function getElemetFor(id: string): HTMLElement | null;
export declare function appendToBodyIfRequired(node: HTMLElement): void;