Options
All
  • Public
  • Public/Protected
  • All
Menu

The return value of the main operation of this library (wrapping texts) would be of this type. Although the final output will be stored in wrappedText and you regularly need this, but there is also a more advanced output: markers.

Hierarchy

  • WrapResult

Index

Properties

Properties

markers

markers: number[]

Each member of this array would point to a location that a line-break (possibly: line-break + indentation) is needed.

So you can reproduce the final output (wrappedText) completely using this array + your original input.

wrappedText

wrappedText: string

The final output. This would be as same as the your original input, but in addition to a few break-line characters + possibly indentations ('\n' + calculated_indentations).

see

alreadyPresentIndentation in {@linkcode TextWrapper.wrap.alreadyPresentIndentation wrap()}

see

WrapOptions.continuationIndent

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