dynamicCSS.d.ts 395 B

123456789101112
  1. interface Options {
  2. attachTo?: Element;
  3. csp?: {
  4. nonce?: string;
  5. };
  6. prepend?: boolean;
  7. mark?: string;
  8. }
  9. export declare function injectCSS(css: string, option?: Options): HTMLStyleElement;
  10. export declare function removeCSS(key: string, option?: Options): void;
  11. export declare function updateCSS(css: string, key: string, option?: Options): HTMLStyleElement;
  12. export {};