@beenotung/tslib
Version:
utils library in Typescript
20 lines (19 loc) • 837 B
TypeScript
export declare function removeNode(node: Node & {
remove?: () => void;
}): void | (Node & {
remove?: (() => void) | undefined;
});
/**
* auto remove, then append to {parent}
* */
export declare function appendNode(node: Node, parent: Node): void;
export declare function setFullscreen(element?: HTMLElement): void;
export declare function exitFullscreen(): void;
/** @deprecated */
export declare function htmlCollectionToArray(es: HTMLCollection): Element[];
/** @deprecated lost type hint */
export declare let qa: (x: string, parent?: HTMLElement) => NodeListOf<Element>;
/** @deprecated lost type hint */
export declare let q: (x: string, parent?: HTMLElement) => Element | null;
export declare function csv_to_table_element(rows: string[][]): HTMLTableElement;
export declare function copyToClipboard(text: string): void;