Update dependencies & fix misc formatting errors
This commit is contained in:
@@ -26,7 +26,7 @@ export interface BusInternalSubscription {
|
||||
*/
|
||||
@Singleton()
|
||||
export class Bus<TEvent extends Event = Event> extends Unit implements EventBus<TEvent>, AwareOfContainerLifecycle {
|
||||
awareOfContainerLifecycle: true = true
|
||||
awareOfContainerLifecycle = true as const
|
||||
|
||||
@Inject()
|
||||
protected readonly logging!: Logging
|
||||
|
||||
@@ -11,7 +11,7 @@ import {CanonicalItemClass} from '../CanonicalReceiver'
|
||||
*/
|
||||
@Injectable()
|
||||
export class LocalBus<TEvent extends Event = Event> extends CanonicalItemClass implements EventBus<TEvent>, AwareOfContainerLifecycle {
|
||||
awareOfContainerLifecycle: true = true
|
||||
awareOfContainerLifecycle = true as const
|
||||
|
||||
@Inject()
|
||||
protected readonly logging!: Logging
|
||||
|
||||
@@ -12,7 +12,7 @@ import {getEventName} from './getEventName'
|
||||
*/
|
||||
@Injectable()
|
||||
export class RedisBus implements EventBus, AwareOfContainerLifecycle {
|
||||
awareOfContainerLifecycle: true = true
|
||||
awareOfContainerLifecycle = true as const
|
||||
|
||||
@Inject()
|
||||
protected readonly redis!: Redis
|
||||
|
||||
@@ -100,7 +100,7 @@ export class StateEventSerializer extends BaseSerializer<StateEvent<JSONState>,
|
||||
protected readonly injector!: Container
|
||||
|
||||
/** The StateEvent implementation. */
|
||||
public readonly eventClass: Instantiable<StateEvent<JSONState>>;
|
||||
public readonly eventClass: Instantiable<StateEvent<JSONState>>
|
||||
|
||||
constructor(
|
||||
eventClass: Instantiable<StateEvent<JSONState>>,
|
||||
|
||||
@@ -23,7 +23,7 @@ import {Request} from '../../http/lifecycle/Request'
|
||||
|
||||
@Injectable()
|
||||
export class WebSocketBus implements EventBus, AwareOfContainerLifecycle {
|
||||
awareOfContainerLifecycle: true = true
|
||||
awareOfContainerLifecycle = true as const
|
||||
|
||||
/**
|
||||
* If true, the session will be loaded when an event is received and
|
||||
|
||||
Reference in New Issue
Block a user