ComplexDependency - Andrei15193/react-model-view-viewmodel GitHub Wiki

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:194.

Generic Parameters

  • T - The complex dependency type.

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

    Type constraints: readonly any[].

See also

⚠️ **GitHub.com Fallback** ⚠️