mirror of
https://github.com/hexastack/hexabot
synced 2025-02-22 12:28:26 +00:00
fix: pluginNameSchema typing
This commit is contained in:
parent
1337c8cb6b
commit
6879ff77b5
@ -154,9 +154,9 @@ export type StdOutgoingAttachmentMessage = z.infer<
|
||||
typeof stdOutgoingAttachmentMessageSchema
|
||||
>;
|
||||
|
||||
export const pluginNameSchema = z.object({
|
||||
name: z.string().regex(/-plugin$/) as z.ZodType<PluginName>,
|
||||
});
|
||||
export const pluginNameSchema = z
|
||||
.string()
|
||||
.regex(/-plugin$/) as z.ZodType<PluginName>;
|
||||
|
||||
export const stdPluginMessageSchema = z.object({
|
||||
plugin: pluginNameSchema,
|
||||
|
Loading…
Reference in New Issue
Block a user