Functionpluginsv0.6.1Decorator
See also:KpgService
RegisterKpgService<TKey>(
key: TKey,
options?: KpgServiceRegistrationOptions
): <Ctor extends Constructor<KpgServices[TKey]>>(
ctor: Ctor
) => voidRegisterKpgService<TKey>(
key: TKey,
options?: KpgServiceRegistrationOptions
): <Ctor extends Constructor<KpgServices[TKey]>>(
ctor: Ctor
) => voidTKey
The service key type
TKeyTKeyThe service key type
key
key: TKeykey: TKeyService key for registration and type-safe access
options?
options?: KpgServiceRegistrationOptionsoptions?: KpgServiceRegistrationOptionsAdditional registration options