fix: channel event typing

This commit is contained in:
Mohamed Marrouchi 2024-10-18 18:46:32 +01:00
parent 21a6cb3294
commit a8030378ca
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
import { import {
DEFAULT_LIVE_CHAT_TEST_SETTINGS, DEFAULT_LIVE_CHAT_TEST_SETTINGS,
LIVE_CHAT_TEST_CHANNEL_NAME, LIVE_CHAT_TEST_GROUP_NAME,
} from './settings'; } from './settings';
declare global { declare global {
@ -10,7 +10,7 @@ declare global {
declare module '@nestjs/event-emitter' { declare module '@nestjs/event-emitter' {
interface IHookSettingsGroupLabelOperationMap { interface IHookSettingsGroupLabelOperationMap {
[name: HyphenToUnderscore<typeof LIVE_CHAT_TEST_CHANNEL_NAME>]: TDefinition< [LIVE_CHAT_TEST_GROUP_NAME]: TDefinition<
object, object,
SettingObject<typeof DEFAULT_LIVE_CHAT_TEST_SETTINGS> SettingObject<typeof DEFAULT_LIVE_CHAT_TEST_SETTINGS>
>; >;

View File

@ -1,4 +1,4 @@
import { DEFAULT_OFFLINE_SETTINGS, OFFLINE_CHANNEL_NAME } from './settings'; import { DEFAULT_OFFLINE_SETTINGS, OFFLINE_GROUP_NAME } from './settings';
declare global { declare global {
interface Settings extends SettingTree<typeof DEFAULT_OFFLINE_SETTINGS> {} interface Settings extends SettingTree<typeof DEFAULT_OFFLINE_SETTINGS> {}
@ -6,7 +6,7 @@ declare global {
declare module '@nestjs/event-emitter' { declare module '@nestjs/event-emitter' {
interface IHookSettingsGroupLabelOperationMap { interface IHookSettingsGroupLabelOperationMap {
[key: HyphenToUnderscore<typeof OFFLINE_CHANNEL_NAME>]: TDefinition< [OFFLINE_GROUP_NAME]: TDefinition<
object, object,
SettingObject<typeof DEFAULT_OFFLINE_SETTINGS> SettingObject<typeof DEFAULT_OFFLINE_SETTINGS>
>; >;