@@ -3,7 +3,7 @@ import type ts from 'typescript';
33
44import type { IR } from '~/ir/types' ;
55import type { DefinePlugin , Plugin } from '~/plugins' ;
6- import type { CallTsDsl , DollarTsDsl , ObjectTsDsl , TsDsl } from '~/ts-dsl' ;
6+ import type { $ , DollarTsDsl , TsDsl } from '~/ts-dsl' ;
77import type { StringCase , StringName } from '~/types/case' ;
88import type { MaybeArray } from '~/types/utils' ;
99
@@ -757,7 +757,7 @@ type SharedResolverArgs = DollarTsDsl & {
757757 * This chain can be extended, transformed, or replaced entirely to customize
758758 * the resulting output of the resolver.
759759 */
760- chain ?: CallTsDsl ;
760+ chain ?: ReturnType < typeof $ . call > ;
761761 plugin : ZodPlugin [ 'Instance' ] ;
762762} ;
763763
@@ -769,7 +769,7 @@ export type ObjectBaseResolverArgs = SharedResolverArgs & {
769769 /** Null = never */
770770 additional ?: ts . Expression | null ;
771771 schema : IR . SchemaObject ;
772- shape : ObjectTsDsl ;
772+ shape : ReturnType < typeof $ . object > ;
773773} ;
774774
775775export type ValidatorResolverArgs = SharedResolverArgs & {
@@ -802,7 +802,9 @@ type Resolvers = Plugin.Resolvers<{
802802 *
803803 * Returning `undefined` will execute the default resolver logic.
804804 */
805- base ?: ( args : ObjectBaseResolverArgs ) => CallTsDsl | undefined ;
805+ base ?: (
806+ args : ObjectBaseResolverArgs ,
807+ ) => ReturnType < typeof $ . call > | undefined ;
806808 } ;
807809 /**
808810 * Resolvers for string schemas.
@@ -824,7 +826,7 @@ type Resolvers = Plugin.Resolvers<{
824826 */
825827 formats ?: Record <
826828 string ,
827- ( args : FormatResolverArgs ) => CallTsDsl | undefined
829+ ( args : FormatResolverArgs ) => ReturnType < typeof $ . call > | undefined
828830 > ;
829831 } ;
830832 /**
0 commit comments