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.
21 lines (18 loc) • 324 B
text/typescript
/**
* Module interface.
*/
export default interface IModule {
url: URL;
/**
* Compiles and evaluates the module.
*
* @returns Module exports.
*/
evaluate(): Promise<{ [key: string]: any }>;
/**
* Compiles and preloads the module and its imports.
*
* @returns Promise.
*/
preload(): Promise<void>;
}