Update dependencies & fix misc formatting errors

This commit is contained in:
2022-09-30 12:02:39 -05:00
parent 52762bd4a1
commit 0484a586bd
23 changed files with 932 additions and 2797 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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>>,

View File

@@ -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