Home > @xoram/core > Service
Service interface
The minimal requirement for a service. A service matching this interface precisely (i.e. without any other public member) is referred to as a Topic
.
Signature:
typescript
export interface Service<notifications extends Record<string, unknown> = Record<string, unknown>>
1
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
Emitter<notifications & ServiceNotifications> | The event emitter that enables the use of onEvent()/onEvent()/onEvent() on services. |