mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 11:02:11 +08:00
Extended Document to include parentWindow
This commit is contained in:
5
jsdom/jsdom.d.ts
vendored
5
jsdom/jsdom.d.ts
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user