@kayahr/di
    Preparing search index...

    Interface FunctionOptions<Value>

    Options for function registrations.

    interface FunctionOptions<Value = unknown> {
        lifetime?: Lifetime;
        scope?: Scope;
        token?: InjectionToken<Value> | InjectionToken<Value>[];
    }

    Type Parameters

    • Value = unknown

      The resolved function type.

    Hierarchy (View Summary)

    Index

    Properties

    lifetime?: Lifetime

    The dependency lifetime. Defaults to Lifetime.SINGLETON.

    scope?: Scope

    Optional scope owning this registration. Defaults to the shared root scope.

    Optional injection token (or tokens) of this registration.