fix: pluginNameSchema typing

This commit is contained in:
abdou6666 2025-02-04 17:13:59 +01:00
parent 1337c8cb6b
commit 6879ff77b5

View File

@ -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,