Loxer - v3.0.0
    Preparing search index...

    Type Alias TraceCallPrinter

    TraceCallPrinter: (content?: unknown) => string

    Renders a traced call the way the message templates do: the name, then content in parentheses, each part colored as a template's is.

    fn prints the traced function's own name and parentFn prints it behind its parent, so fn(3) reads as calculate(3) and parentFn(3) as Checkout.calculate(3). Called with no content — or with one that renders empty — each prints its name with empty parentheses. Text a callback writes around a printer stays uncolored.

    content is any value at all, rendered by the rule a log's own message takes: a primitive through String(), an object or a function as one compact line, so fn(basket) reads as the basket's contents rather than as [object Object].

    Type Declaration

      • (content?: unknown): string
      • Parameters

        • Optionalcontent: unknown

        Returns string