diff --git a/api/src/channel/types.ts b/api/src/channel/types.ts index 0c654f19..7269a38c 100644 --- a/api/src/channel/types.ts +++ b/api/src/channel/types.ts @@ -6,14 +6,14 @@ * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file). */ -import { SettingCreateDto } from '@/setting/dto/setting.dto'; +import { AnySetting, StrictSetting } from '@/setting/schemas/types'; import { HyphenToUnderscore } from '@/utils/types/extension'; export type ChannelName = `${string}-channel`; -export type ChannelSetting = Omit< - SettingCreateDto, - 'group' | 'weight' -> & { - group: HyphenToUnderscore; -}; +export type ChannelSetting = StrictSetting< + AnySetting, + { + group: HyphenToUnderscore; + } +>;