mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-24 05:47:44 +08:00
[jsdom] use parse5@4.0.0 typings until jsdom upgrades parse5
This commit is contained in:
4
types/jsdom/index.d.ts
vendored
4
types/jsdom/index.d.ts
vendored
@@ -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,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"parse5": "^3.0.2"
|
||||
"parse5": "^4.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,10 +15,13 @@
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"paths": {
|
||||
"parse5": [ "parse5/v4" ]
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"jsdom-tests.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user