Skip to main content

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

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

Defined in: contracts.ts:101

Type Parameters​

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

Parameters​

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

Returns​

TService