effect-io-ai

Package: @effect/printer
Module: Layout

Layout.Layout.FittingPredicate

Decides whether a DocStream fits the given constraints, namely:

Signature

export interface FittingPredicate<A> {
    (
      stream: DocStream<A>,
      indentation: number,
      currentColumn: number,
      comparator: LazyArg<DocStream<A>>
    ): boolean
  }

Source

Since v1.0.0