Skip to content

ComplexDependency

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions
API / ComplexDependency<T, TAdditional> alias

Represents a complex dependency where additional dependencies are both resolved through the provided dependnecy resolver as well as providing them as constructor parameters.

This is a more complex case where some parameters are page or component specific, such as the entity ID that is loaded.

type ComplexDependency<T, TAdditional extends readonly any[]> = {
  new (dependencyResolver: IDependencyResolver, ...additionalDependencies: TAdditional): T;
};

Source reference: src/dependencies/IDependencyResolver.ts:112.

Generic Parameters

  • T - The complex dependency type.

  • TAdditional - A tuple representing additional parameters required by the constructor.

    Type constraints: readonly any[].

See also

Clone this wiki locally