From 4e535cf316f5eb4a190c862dd9f2ea82947c0cad Mon Sep 17 00:00:00 2001 From: Graeme Wicksted Date: Tue, 22 Sep 2015 23:30:01 -0400 Subject: [PATCH] Corrected types of some properties --- jsdom/jsdom.d.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/jsdom/jsdom.d.ts b/jsdom/jsdom.d.ts index 8f090e09e..77e6083e6 100644 --- a/jsdom/jsdom.d.ts +++ b/jsdom/jsdom.d.ts @@ -4,6 +4,7 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped /// +/// declare module "jsdom" { @@ -68,7 +69,7 @@ declare module "jsdom" { export function nodeLocation(node: Node): any; export function reconfigureWindow(window: Window, newProps: WindowProperties): void; - export function jQueryify(window: Window, jqueryUrl: string, callback: (window, jquery) => any): void; + export function jQueryify(window: Window, jqueryUrl: string, callback: (window: Window, jquery: JQuery) => any): void; export var debugMode: boolean; @@ -103,7 +104,7 @@ declare module "jsdom" { * Allowed: ["script", "img", "css", "frame", "iframe", "link"] or false * Default for jsdom.env: false */ - FetchExternalResources?: string | boolean; + FetchExternalResources?: string[] | boolean; /** * Enables/disables JavaScript execution @@ -111,7 +112,7 @@ declare module "jsdom" { * Allowed: ["script"] or false, * Default for jsdom.env: false */ - ProcessExternalResources?: string | boolean; + ProcessExternalResources?: string[] | boolean; /** * Filters resource downloading and processing to disallow those matching the given regular expression