mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 04:48:51 +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
|
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user