Functions
isEmpty
- isEmpty(doc: Doc): boolean
-
Parameters
Returns boolean
isLineNext
- isLineNext(doc: Doc): boolean
-
Parameters
Returns 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
-
-
onEnter: function
-
-
Parameters
Returns boolean
-
Optional onExit: undefined | function
-
Optional shouldTraverseConditionalGroups: undefined | true | false
Returns void
willBreak
- willBreak(doc: Doc): boolean
-
Parameters
Returns boolean
Returns
true
if document contains no content.