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 typeof stdOutgoingAttachmentMessageSchema
>; >;
export const pluginNameSchema = z.object({ export const pluginNameSchema = z
name: z.string().regex(/-plugin$/) as z.ZodType<PluginName>, .string()
}); .regex(/-plugin$/) as z.ZodType<PluginName>;
export const stdPluginMessageSchema = z.object({ export const stdPluginMessageSchema = z.object({
plugin: pluginNameSchema, plugin: pluginNameSchema,