[jsdom] use parse5@4.0.0 typings until jsdom upgrades parse5

This commit is contained in:
andy.patterson
2018-06-11 08:13:44 -04:00
parent f68677844f
commit ac70f844f0
3 changed files with 8 additions and 5 deletions

View File

@@ -7,7 +7,7 @@
/// <reference types="node" />
import { EventEmitter } from 'events';
import { ElementLocation } from 'parse5';
import { MarkupData } from 'parse5';
import * as tough from 'tough-cookie';
import { Script } from 'vm';
@@ -32,7 +32,7 @@ export class JSDOM {
/**
* The nodeLocation() method will find where a DOM node is within the source document, returning the parse5 location info for the node.
*/
nodeLocation(node: Node): ElementLocation | null;
nodeLocation(node: Node): MarkupData.ElementLocation | null;
/**
* The built-in vm module of Node.js allows you to create Script instances,

View File

@@ -1,6 +1,6 @@
{
"private": true,
"dependencies": {
"parse5": "^3.0.2"
"parse5": "^4.0.0"
}
}

View File

@@ -15,10 +15,13 @@
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
"paths": {
"parse5": [ "parse5/v4" ]
}
},
"files": [
"index.d.ts",
"jsdom-tests.ts"
]
}
}