mirror of
https://github.com/hexastack/hexabot
synced 2025-04-10 15:55:55 +00:00
fix: accept other key,values in channelDataSchema
This commit is contained in:
parent
ac01cc7269
commit
a648fec828
@ -20,8 +20,10 @@ export type SubscriberChannelData<C extends ChannelName = 'unknown-channel'> =
|
||||
[P in keyof SubscriberChannelDict[C]]: SubscriberChannelDict[C][P];
|
||||
};
|
||||
|
||||
export const channelDataSchema = z.object({
|
||||
name: z.string().regex(/-channel$/) as z.ZodType<ChannelName>,
|
||||
});
|
||||
export const channelDataSchema = z
|
||||
.object({
|
||||
name: z.string().regex(/-channel$/) as z.ZodType<ChannelName>,
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
export type Channel = z.infer<typeof channelDataSchema>;
|
||||
|
Loading…
Reference in New Issue
Block a user