UNPKG

xpath-ts2

Version:

DOM 3 and 4 XPath 1.0 implementation for browser and Node.js environment with support for typescript 5.

10 lines (9 loc) 723 B
export declare function isElement(e: Node | undefined | null): e is Element; export declare function isAttribute(e: Node | undefined | null): e is Attr; export declare function isText(e: Node | undefined | null): e is Text; export declare function isCData(e: Node | undefined | null): e is CDATASection; export declare function isDocument(e: Node | undefined | null): e is Document; export declare function isFragment(e: Node | undefined | null): e is DocumentFragment; export declare function isProcessingInstruction(e: Node | undefined | null): e is ProcessingInstruction; export declare function isNamespaceNode(e: Node | undefined | null): e is Attr; export declare function isNSResolver(r: any): r is XPathNSResolver;