From 889a67fb2ac57cff029f15893e8cafa23a08f412 Mon Sep 17 00:00:00 2001 From: Muhammad Firdaus Sati Date: Sat, 24 Aug 2024 14:50:37 +0700 Subject: [PATCH] fix: validator infering --- src/types/extractor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/extractor.ts b/src/types/extractor.ts index eb34ef0..3c4821b 100644 --- a/src/types/extractor.ts +++ b/src/types/extractor.ts @@ -35,7 +35,7 @@ export type ExtractActionValidator< > extends | z.ZodObject | z.ZodEffects> - ? z.infer< + ? z.input< NonNullable< NonNullable< NonNullable[A]>['validator'] @@ -110,7 +110,7 @@ export type ExtractEventValidator< ? NonNullable< NonNullable[E]>['validator'] > extends z.ZodObject - ? z.infer< + ? z.input< NonNullable[E]>['validator']> > : unknown