UNPKG

happy-dom

Version:

Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.

34 lines 828 B
import BrowserWindow from '../window/BrowserWindow.cjs'; import { URL } from 'url'; import IModule from './IModule.cjs'; import CSSStyleSheet from '../css/CSSStyleSheet.cjs'; /** * CSS module. */ export default class CSSModule implements IModule { #private; readonly url: URL; /** * Constructor. * * @param window Window. * @param url Module URL. * @param source Source code. */ constructor(window: BrowserWindow, url: URL, source: string); /** * Compiles and evaluates the module. * * @returns Module exports. */ evaluate(): Promise<{ default: CSSStyleSheet; }>; /** * Compiles and preloads the module and its imports. * * @returns Promise. */ preload(): Promise<void>; } //# sourceMappingURL=CSSModule.d.ts.map