@appzic/js-helper-func
Version:
Vanila JavaScript DOM manipulation with maximizing minification
7 lines (6 loc) • 488 B
TypeScript
export declare const getElementById: (id: string) => HTMLElement | null;
export declare const querySelectorFromElement: (element: HTMLElement, qurry: string) => HTMLElement;
export declare const createElement: (tagName: keyof HTMLElementTagNameMap, attributes?: {
[key: string]: string;
} | undefined, classes?: Array<string>) => HTMLElement;
export declare const createCustomElement: (name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions) => void;