@cto.af/linewrap - v3.2.5
    Preparing search index...

    Type Alias BreakRule

    BreakRule: (state: BreakerState) => RuleResultsEnum

    A rule that impacts linebreaking. Looking ahead and behind one code point is fast, using state.prev and state.next respectively. Looking ahead more code points is possible with *BreakerState.codePoints(), but be careful of causing ReDos vulnerabilities.

    Type declaration

      • (state: BreakerState): RuleResultsEnum
      • Parameters

        • state: BreakerState

        Returns RuleResultsEnum