Skip to content

Commit

Permalink
Merge pull request #127 from drewhoener/bugfix/fix-node-array-check
Browse files Browse the repository at this point in the history
(fix): isArrayOfNodes input type not assignable to guarded type
  • Loading branch information
JLRishe authored Dec 16, 2023
2 parents 0c126af + 50357f1 commit d1625a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpath.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function useNamespaces(namespaceMap: Record<string, string>): XPathSelect

// Type guards to narrow down the type of the selected type of a returned Node object
export function isNodeLike(value: SelectedValue): value is Node;
export function isArrayOfNodes(value: SelectedValue): value is Node[];
export function isArrayOfNodes(value: SelectReturnType): value is Node[];
export function isElement(value: SelectedValue): value is Element;
export function isAttribute(value: SelectedValue): value is Attr;
export function isTextNode(value: SelectedValue): value is Text;
Expand Down

0 comments on commit d1625a4

Please sign in to comment.