UNPKG

happy-dom-without-node

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.

27 lines 604 B
type Context = object; /** * */ declare class Script { private code; /** * * @param code */ constructor(code: string); /** * * @param context */ runInContext(context: Context): void; } declare const isContext: (context: Context) => boolean; declare const createContext: (context: Context) => Context; export { Script, isContext, createContext }; declare const _default: { Script: typeof Script; isContext: (context: object) => boolean; createContext: (context: object) => object; }; export default _default; //# sourceMappingURL=vm.d.ts.map