Rename property for accuracy

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne SavolainenandMikko Aspiala committed 2022-06-03 07:48:02 +03:00
1 parent 84ae8a399b
commit ebdc8d10c1
4 files changed
+5 -5

No files matched your search

@@ -5,9 +5,9 @@
import { getInjectionToken } from "@ogre-tools/injectable";
export interface Channel<TInstance> {
export interface Channel<MessageTemplate> {
id: string;
_template?: TInstance;
_messageTemplate?: MessageTemplate;
}
export const channelInjectionToken = getInjectionToken<Channel<any>>({
@@ -7,7 +7,7 @@ import type { Channel } from "./channel-injection-token";
export interface ChannelListener<TChannel extends Channel<any>> {
channel: TChannel;
handler: (value: TChannel["_template"]) => void;
handler: (value: TChannel["_messageTemplate"]) => void;
}
export const channelListenerInjectionToken = getInjectionToken<ChannelListener<Channel<any>>>(
@@ -7,7 +7,7 @@ import type { Channel } from "./channel-injection-token";
export type EnlistChannelListener = <TChannel extends Channel<unknown>>(
channel: TChannel,
handler: (value: TChannel["_template"]) => void
handler: (value: TChannel["_messageTemplate"]) => void
) => () => void;
export const enlistChannelListenerInjectionToken =
@@ -7,7 +7,7 @@ import type { Channel } from "./channel-injection-token";
export type SendToAgnosticChannel = <TChannel extends Channel<unknown>>(
channel: TChannel,
message: TChannel["_template"]
message: TChannel["_messageTemplate"]
) => void;
export const sendToAgnosticChannelInjectionToken =