construct-style-sheets-polyfill
Version:
Constructible style sheets/adopted style sheets polyfill
15 lines (11 loc) • 317 B
TypeScript
declare module 'construct-style-sheets-polyfill';
interface CSSStyleSheet {
replace(contents: string): Promise<CSSStyleSheet>;
replaceSync(contents: string): void;
}
interface Document {
adoptedStyleSheets: readonly CSSStyleSheet[];
}
interface ShadowRoot {
adoptedStyleSheets: readonly CSSStyleSheet[];
}