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

    Type Alias TraceOptions<Args, Return>

    Options for the traceFunction wrapper.

    type TraceOptions<Args extends unknown[], Return> = {
        label?: string;
        log?: boolean;
        onCall?: (info: TraceCallInfo<Args, Return>) => void;
    }

    Type Parameters

    • Args extends unknown[]
    • Return
    Index

    Properties

    Properties

    label?: string

    Optional label prepended to each log line.

    "fetchUser"
    
    log?: boolean

    When true, logs a one-line summary to the console after each call settles.

    false
    
    onCall?: (info: TraceCallInfo<Args, Return>) => void

    Callback invoked after each call settles (including async resolution and rejection). Receives the full TraceCallInfo for that invocation. Errors thrown by this callback are silently swallowed and do not affect the caller.

    Type Declaration