@beenotung/tslib
Version:
utils library in Typescript
15 lines (14 loc) • 572 B
TypeScript
export declare function removeNode(node: Node & {
remove?: () => void;
}): void | (Node & {
remove?: () => void;
});
/**
* 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;
export declare function csv_to_table_element(rows: string[][]): HTMLTableElement;
/** @throws {Error} if copy to clipboard is not supported */
export declare function copyToClipboard(text: string): Promise<void>;