UNPKG

@joist/element

Version:

Intelligently apply styles to WebComponents

12 lines (11 loc) 418 B
type TemplateValueGetter = (key: string) => string; export interface TemplateOpts { value?: TemplateValueGetter; tokenPrefix?: string; } export interface RenderOpts { refresh?: boolean; } export declare function template({ tokenPrefix, value }?: TemplateOpts): <T extends HTMLElement>(this: T, opts?: RenderOpts) => void; export declare function getTemplateValue(obj: object, key: string): any; export {};