Function extractDependencies

  • Type Parameters

    • T extends Record<string, NonNullDependency>

    Parameters

    • context: ManagedContext
    • requestedDependencies: (keyof T)[]
    • Optionaloptions: {
          required: true;
      }
      • required: true

    Returns T extends PackDependencies
        ? Required<T>
        : Required<PackDependencies>

  • Type Parameters

    • T extends Record<string, NonNullDependency>

    Parameters

    • context: ManagedContext
    • requestedDependencies: (keyof T)[]
    • Optionaloptions: {
          required: false;
      }
      • required: false

    Returns T extends PackDependencies
        ? Partial<T>
        : Partial<PackDependencies>