Type alias Formatter

Formatter: ((input: Readonly<TemplateStringsArray> | string, ...expressions: ReadOnlyArray) => string)

Type declaration

    • (input: Readonly<TemplateStringsArray> | string, ...expressions: ReadOnlyArray): string
    • Formatter function that takes a string or a tagged template.


      A plain string.


      • input: Readonly<TemplateStringsArray> | string

        Array of strings for template strings or a single string.

      • Rest ...expressions: ReadOnlyArray

        Array of expressions (if any).

      Returns string