import { Handle } from 'dojo-interfaces/core'; /** * A handle that can be used to update or remove a rule added by addCssRule. */ export interface CssRuleHandle extends Handle { get(property: string): string; remove(property: string): void; set(property: string, value: string): void; set(properties: { [property: string]: string; }): void; } /** * Dynamically adds a CSS rule to the document. * * @param selector a CSS selector * @param css a CSS rule string * @return an object that can be used to update and remove the rule * * @example * let handle = addCssRule('div.alert', 'background: red; color: white;'); */ export default function addCssRule(selector: string, css: string): CssRuleHandle;