@discoveryjs/discovery
Version:
Frontend framework for rapid data (JSON) analysis, shareable serverless reports and dashboards
13 lines (12 loc) • 391 B
TypeScript
export type InjectStyle = string | InjectInlineStyle | InjectLinkStyle;
export type InjectInlineStyle = {
type: 'style' | 'inline';
content: string;
media?: string;
};
export type InjectLinkStyle = {
type: 'link' | 'external';
href: string;
media?: string;
};
export declare function injectStyles(el: HTMLElement | ShadowRoot, styles?: InjectStyle[]): Promise<void>;