Intercept every resolve() call — enables logging, metrics, caching, permission checks, or decoration.

1.2.0

  • Called around each resolution.

    Type Parameters

    • T

    Parameters

    • token: ServiceToken<T>

      The token being resolved.

    • next: (() => T)

      Call to continue to the next middleware (or the actual provider).

        • (): T
        • Returns T

    Returns T

    The resolved service (possibly wrapped / decorated).