UNPKG

@qntm-code/utils

Version:

A collection of useful utility functions with associated TypeScript types. All functions have been unit tested.

6 lines (5 loc) 281 B
import { Dictionary } from '../../src'; /** * Creates a dom element of a given type, applies any supplied styles, and adds to the body element (if not disbaled) */ export declare function createElement(type: string, styles?: Dictionary<string>, addToDom?: boolean): HTMLElement;