@kayahr/di
    Preparing search index...

    Interface InjectableOptions<Params, Value>

    Options for creating an injectable class or factory.

    interface InjectableOptions<Params extends unknown[] = [], Value = unknown> {
        inject?: Params;
        lifetime?: Lifetime;
        provide?: Class | Class[];
        scope?: Scope;
        token?: InjectionToken<Value> | InjectionToken<Value>[];
    }

    Type Parameters

    • Params extends unknown[] = []

      The inject array type.

    • Value = unknown

      The provided dependency type.

    Index

    Properties

    inject?: Params

    The parameter types. Optional when injectable has no parameters. Otherwise it must match the constructor/factory signature.

    lifetime?: Lifetime

    The dependency lifetime. Defaults to Lifetime.SINGLETON.

    provide?: Class | Class[]

    Optional additional class qualifier or qualifiers explicitly provided by this injectable.

    scope?: Scope

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

    Optional injection token (or tokens) of this injectable. This allows injecting it via token in addition to its type.