Type Alias FormatCallback<T>

FormatCallback: (this: AnsiString, arg: T) => void

A callback that processes a placeholder when splitting text.

Type Parameters

  • T = string

Type declaration

    • (this: AnsiString, arg: T): void
    • Parameters

      • this: AnsiString

        The ANSI string to append to

      • arg: T

        The placeholder or argument

      Returns void