mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 04:48:51 +00:00
fix: channel event typing
This commit is contained in:
parent
21a6cb3294
commit
a8030378ca
@ -1,6 +1,6 @@
|
||||
import {
|
||||
DEFAULT_LIVE_CHAT_TEST_SETTINGS,
|
||||
LIVE_CHAT_TEST_CHANNEL_NAME,
|
||||
LIVE_CHAT_TEST_GROUP_NAME,
|
||||
} from './settings';
|
||||
|
||||
declare global {
|
||||
@ -10,7 +10,7 @@ declare global {
|
||||
|
||||
declare module '@nestjs/event-emitter' {
|
||||
interface IHookSettingsGroupLabelOperationMap {
|
||||
[name: HyphenToUnderscore<typeof LIVE_CHAT_TEST_CHANNEL_NAME>]: TDefinition<
|
||||
[LIVE_CHAT_TEST_GROUP_NAME]: TDefinition<
|
||||
object,
|
||||
SettingObject<typeof DEFAULT_LIVE_CHAT_TEST_SETTINGS>
|
||||
>;
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { DEFAULT_OFFLINE_SETTINGS, OFFLINE_CHANNEL_NAME } from './settings';
|
||||
import { DEFAULT_OFFLINE_SETTINGS, OFFLINE_GROUP_NAME } from './settings';
|
||||
|
||||
declare global {
|
||||
interface Settings extends SettingTree<typeof DEFAULT_OFFLINE_SETTINGS> {}
|
||||
@ -6,7 +6,7 @@ declare global {
|
||||
|
||||
declare module '@nestjs/event-emitter' {
|
||||
interface IHookSettingsGroupLabelOperationMap {
|
||||
[key: HyphenToUnderscore<typeof OFFLINE_CHANNEL_NAME>]: TDefinition<
|
||||
[OFFLINE_GROUP_NAME]: TDefinition<
|
||||
object,
|
||||
SettingObject<typeof DEFAULT_OFFLINE_SETTINGS>
|
||||
>;
|
||||
|
Loading…
Reference in New Issue
Block a user