@lifeart/gxt
Version:
<img align="right" width="95" height="95" alt="Philosopher’s stone, logo of PostCSS" src="./public/logo.png">
16 lines (15 loc) • 813 B
TypeScript
export declare function setDocument(newDocument: Document): void;
export declare function getDocument(): Document;
export declare const api: {
toString(): string;
addEventListener(node: Node, eventName: string, fn: EventListener): (() => void) | undefined;
attr(element: HTMLElement, name: string, value: string | null): void;
prop(element: HTMLElement, name: string, value: any): any;
comment(text?: string): Comment;
text(text?: string | number): Text;
textContent(node: Node, text: string): void;
fragment(): DocumentFragment;
element(tagName?: string): HTMLElement;
append(parent: HTMLElement | Node, child: HTMLElement | Node, targetIndex?: number): void;
insert(parent: HTMLElement | Node, child: HTMLElement | Node, anchor?: HTMLElement | Node | null): void;
};