From ffad52fa9cfba2ab1a08da7fecbb944264184d91 Mon Sep 17 00:00:00 2001 From: Graeme Wicksted Date: Tue, 22 Sep 2015 23:37:19 -0400 Subject: [PATCH] Extended Document to include parentWindow --- jsdom/jsdom.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jsdom/jsdom.d.ts b/jsdom/jsdom.d.ts index 77e6083e68..1a8bb23abf 100644 --- a/jsdom/jsdom.d.ts +++ b/jsdom/jsdom.d.ts @@ -73,6 +73,9 @@ declare module "jsdom" { export var debugMode: boolean; + export interface DocumentWithParentWindow extends Document { + parentWindow: Window; + } /** * The jsdom.jsdom method does less things automatically; it takes in only HTML source, and does not let you to @@ -85,7 +88,7 @@ declare module "jsdom" { * equivalent to what a browser will give if you open up an empty .html file. * @param options see the explanation of the config object above. */ - export function jsdom(markup: string, config?: Config): Document; + export function jsdom(markup: string, config?: Config): DocumentWithParentWindow; /** * Before creating any documents, you can modify the defaults for all future documents: