Function extractDependencies
- extractDependencies<T>(context, requestedDependencies, options?): T extends PackDependencies
? Required<T>
: Required<PackDependencies> Type Parameters
- T extends Record<string, NonNullDependency>
Parameters
- context: ManagedContext
- requestedDependencies: (keyof T)[]
Optional
options: {
required: true;
}
Returns T extends PackDependencies
? Required<T>
: Required<PackDependencies>
- extractDependencies<T>(context, requestedDependencies, options?): T extends PackDependencies
? Partial<T>
: Partial<PackDependencies> Type Parameters
- T extends Record<string, NonNullDependency>
Parameters
- context: ManagedContext
- requestedDependencies: (keyof T)[]
Optional
options: {
required: false;
}
Returns T extends PackDependencies
? Partial<T>
: Partial<PackDependencies>