Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

isEmpty

  • isEmpty(doc: Doc): boolean
  • Returns true if document contains no content.

    Parameters

    Returns boolean

isLineNext

  • isLineNext(doc: Doc): boolean

mapDoc

  • mapDoc(doc: Doc, f: function): Doc

propagateBreaks

  • propagateBreaks(doc: Doc): void

traverseDoc

  • traverseDoc(doc: Doc, onEnter: function, onExit?: undefined | function, shouldTraverseConditionalGroups?: undefined | true | false): void
  • Parameters

    • doc: Doc
    • onEnter: function
        • (doc: Doc): boolean
        • Parameters

          Returns boolean

    • Optional onExit: undefined | function
    • Optional shouldTraverseConditionalGroups: undefined | true | false

    Returns void

willBreak

  • willBreak(doc: Doc): boolean
  • Returns true if given document is always going to break regardless if it fits the line or not.

    Parameters

    Returns boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc