From 7a00541599f2edb1eb739bd6d8bbf26ca4d78bb3 Mon Sep 17 00:00:00 2001 From: Janne Savolainen Date: Thu, 19 May 2022 11:28:02 +0300 Subject: [PATCH] Rename property for accuracy Co-authored-by: Mikko Aspiala Signed-off-by: Janne Savolainen --- src/common/channel/channel-injection-token.ts | 4 ++-- src/common/channel/channel-listener-injection-token.ts | 2 +- src/common/channel/enlist-channel-listener-injection-token.ts | 2 +- .../channel/send-to-agnostic-channel-injection-token.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/common/channel/channel-injection-token.ts b/src/common/channel/channel-injection-token.ts index eb5ec40167..586f5eeb35 100644 --- a/src/common/channel/channel-injection-token.ts +++ b/src/common/channel/channel-injection-token.ts @@ -5,9 +5,9 @@ import { getInjectionToken } from "@ogre-tools/injectable"; -export interface Channel { +export interface Channel { id: string; - _template?: TInstance; + _messageTemplate?: MessageTemplate; } export const channelInjectionToken = getInjectionToken>({ diff --git a/src/common/channel/channel-listener-injection-token.ts b/src/common/channel/channel-listener-injection-token.ts index 29307be1db..df7219c634 100644 --- a/src/common/channel/channel-listener-injection-token.ts +++ b/src/common/channel/channel-listener-injection-token.ts @@ -7,7 +7,7 @@ import type { Channel } from "./channel-injection-token"; export interface ChannelListener> { channel: TChannel; - handler: (value: TChannel["_template"]) => void; + handler: (value: TChannel["_messageTemplate"]) => void; } export const channelListenerInjectionToken = getInjectionToken>>( diff --git a/src/common/channel/enlist-channel-listener-injection-token.ts b/src/common/channel/enlist-channel-listener-injection-token.ts index 6b72ca4ac1..718bf923a5 100644 --- a/src/common/channel/enlist-channel-listener-injection-token.ts +++ b/src/common/channel/enlist-channel-listener-injection-token.ts @@ -7,7 +7,7 @@ import type { Channel } from "./channel-injection-token"; export type EnlistChannelListener = >( channel: TChannel, - handler: (value: TChannel["_template"]) => void + handler: (value: TChannel["_messageTemplate"]) => void ) => () => void; export const enlistChannelListenerInjectionToken = diff --git a/src/common/channel/send-to-agnostic-channel-injection-token.ts b/src/common/channel/send-to-agnostic-channel-injection-token.ts index 901e51b94b..ffb5719c32 100644 --- a/src/common/channel/send-to-agnostic-channel-injection-token.ts +++ b/src/common/channel/send-to-agnostic-channel-injection-token.ts @@ -7,7 +7,7 @@ import type { Channel } from "./channel-injection-token"; export type SendToAgnosticChannel = >( channel: TChannel, - message: TChannel["_template"] + message: TChannel["_messageTemplate"] ) => void; export const sendToAgnosticChannelInjectionToken =