mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Eliminate implicit any in "xpath" tests.
This commit is contained in:
@@ -15,9 +15,8 @@ var node: Node;
|
||||
var stringResult: string;
|
||||
var booleanResult: boolean;
|
||||
var numberResult: number;
|
||||
var selectFn;
|
||||
var expression: xpath.XPathExpression;
|
||||
var namespaceResolver;
|
||||
var namespaceResolver: xpath.XPathNSResolver;
|
||||
var xpathResult: xpath.XPathResult;
|
||||
var length: number;
|
||||
|
||||
@@ -34,7 +33,7 @@ stringResult = xpath.select(xpathText, doc).toString();
|
||||
|
||||
node = xpath.select(xpathText, doc)[0];
|
||||
|
||||
selectFn = xpath.useNamespaces({
|
||||
var selectFn = xpath.useNamespaces({
|
||||
'prefix': 'http://namespaceuri.com/nsfile'
|
||||
});
|
||||
nodes = selectFn(xpathText, doc);
|
||||
|
||||
Reference in New Issue
Block a user