mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 04:48:51 +00:00
fix: update pattern schema camel case
This commit is contained in:
parent
aa8c54c511
commit
22007e451a
@ -32,11 +32,11 @@ export const nlpPatternSchema = z.discriminatedUnion('match', [
|
|||||||
|
|
||||||
export type NlpPattern = z.infer<typeof nlpPatternSchema>;
|
export type NlpPattern = z.infer<typeof nlpPatternSchema>;
|
||||||
|
|
||||||
export const PatternSchema = z.union([
|
export const patternSchema = z.union([
|
||||||
z.string(),
|
z.string(),
|
||||||
z.instanceof(RegExp),
|
z.instanceof(RegExp),
|
||||||
PayloadPatternSchema,
|
PayloadPatternSchema,
|
||||||
z.array(nlpPatternSchema),
|
z.array(nlpPatternSchema),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
export type Pattern = z.infer<typeof PatternSchema>;
|
export type Pattern = z.infer<typeof patternSchema>;
|
||||||
|
Loading…
Reference in New Issue
Block a user