Loxer - v3.0.0
    Preparing search index...

    Function trace

    • This decorator wraps a class level method inside a Loxer.open() and a Loxer.of(...).close() box.


      Type Parameters

      • Args extends readonly unknown[] = readonly unknown[]
      • Result = unknown

      Parameters

      • Optionaloptions: string | TraceOptions<Args, Result>

        either a string for the moduleId or an object of type TraceOptions; pass the method's argument tuple and resolved result type explicitly to type formatter callbacks

      Returns TraceMethodDecorator

      a Decorator for class level methods