import { JSDOM } from "jsdom"; import { give, GuestType, SourceObjectType } from "patron-oop"; export class JSDomDocument implements SourceObjectType { private dom: JSDOM; public constructor(body: string = "") { this.dom = new JSDOM(`${body}`); } public value(guest: GuestType) { give(this.dom.window.document, guest); return this; } }