Skip to content

Commit

Permalink
Update TypeScript definitions for strict null checks (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
mernen authored Feb 25, 2020
1 parent b9190d8 commit b1ecd12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xpath.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
type SelectedValue = Node | Attr | string | number | boolean;
interface XPathSelect {
(expression: string, node?: Node): Array<SelectedValue>;
(expression: string, node: Node, single: true): SelectedValue;
(expression: string, node: Node, single: true): SelectedValue | undefined;
}
export var select: XPathSelect;
export function select1(expression: string, node?: Node): SelectedValue;
export function evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver, type: number, result: XPathResult): XPathResult;
export function select1(expression: string, node?: Node): SelectedValue | undefined;
export function evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | null, type: number, result: XPathResult | null): XPathResult;
export function useNamespaces(namespaceMap: { [name: string]: string }): XPathSelect;

0 comments on commit b1ecd12

Please sign in to comment.