TS-Scribe - v1.2.0
    Preparing search index...

    Type Alias TracedFunction<Args, Return>

    A wrapped function that behaves identically to the original but records every invocation. Created by traceFunction.

    type TracedFunction<Args extends unknown[], Return> = {
        calls: TraceCallInfo<Args, Return>[];
        clear(): void;
        (...args: Args): Return;
    }

    Type Parameters

    • Args extends unknown[]
    • Return
    • Invoke the original function and record the call.

      Parameters

      Returns Return

    Index

    Methods

    Properties

    Methods

    Properties

    All recorded call entries, appended in settlement order after each call completes. For concurrent async calls use TraceCallInfo.callIndex to recover invocation order.

    Note: async calls still in-flight when TracedFunction.clear is called will still append their entry here once they settle.