@symbiotejs/symbiote
Version:
Symbiote.js - close-to-platform frontend library for building super-powered web components
21 lines • 681 B
TypeScript
export function applyStyles<T extends SVGElement | HTMLElement>(el: T, styleMap: StyleMap): void;
export function applyAttributes<T extends SVGElement | HTMLElement>(el: T, attrMap: AttrMap): void;
export function create(desc?: ElementDescriptor): any;
export type StyleMap = {
[x: string]: string | number | boolean;
};
export type AttrMap = {
[x: string]: string | number | boolean;
};
export type PropMap = {
[x: string]: any;
};
export type ElementDescriptor = {
tag?: string;
attributes?: AttrMap;
styles?: StyleMap;
properties?: PropMap;
processors?: Function[];
children?: ElementDescriptor[];
};
//# sourceMappingURL=dom-helpers.d.ts.map