The parameters for the kosDependency decorator.

interface KosDependencyParams<Options> {
    modelType: string;
    id?: string;
    options?: Options;
    lifecycle?: DependencyLifecycle;
}

Type Parameters

  • Options = unknown

Properties

modelType: string

The type of the model to be injected.

id?: string

The id of the model to be injected.

options?: Options

The options to be passed to the model constructor.

lifecycle?: DependencyLifecycle

The lifecycle at which the dependency should be injected.