Skip to main content

Type Alias: ServiceFactory<TService extends IService, TConfig = unknown, TParent extends IService | undefined = IService | undefined>

type ServiceFactory<TService extends IService, TConfig = unknown, TParent extends IService | undefined = IService | undefined> = (context: ServiceActivationContext<TConfig, TParent>, ...dependencies: readonly unknown[]) => TService;

Defined in: contracts.ts:104

Type Parameters

Type ParameterDefault type
TService extends IService-
TConfigunknown
TParent extends IService | undefinedIService | undefined

Parameters

ParameterType
contextServiceActivationContext<TConfig, TParent>
...dependenciesreadonly unknown[]

Returns

TService