Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "utils/type-guards"

Index

Functions

isAttribute

  • isAttribute(node: any): node is AttrImpl

isCData

  • isCData(node: any): node is CDATASectionImpl

isComment

  • isComment(node: any): node is CommentImpl

isDocument

  • isDocument(subject: any): subject is DocumentImpl

isElement

  • isElement(node: any): node is ElementImpl

isProcessingInstruction

  • isProcessingInstruction(node: any): node is ProcessingInstructionImpl
  • Processing instruction node type guard

    Parameters

    • node: any

    Returns node is ProcessingInstructionImpl

isRoot

  • isRoot(node: NodeImpl): boolean
  • Check if the given node is the root of its document.

    Parameters

    • node: NodeImpl

    Returns boolean

isText

  • isText(node: any): node is TextImpl

isXmlWrapper

  • isXmlWrapper(subject: any): subject is XmlWrapper

Generated using TypeDoc