mirror of
https://github.com/hexastack/hexabot
synced 2025-04-26 09:19:29 +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];
|
[P in keyof SubscriberChannelDict[C]]: SubscriberChannelDict[C][P];
|
||||||
};
|
};
|
||||||
|
|
||||||
export const channelDataSchema = z.object({
|
export const channelDataSchema = z
|
||||||
name: z.string().regex(/-channel$/) as z.ZodType<ChannelName>,
|
.object({
|
||||||
});
|
name: z.string().regex(/-channel$/) as z.ZodType<ChannelName>,
|
||||||
|
})
|
||||||
|
.passthrough();
|
||||||
|
|
||||||
export type Channel = z.infer<typeof channelDataSchema>;
|
export type Channel = z.infer<typeof channelDataSchema>;
|
||||||
|
Loading…
Reference in New Issue
Block a user