@@ -2804,7 +2804,7 @@ export class ZodObject<
28042804 * @deprecated
28052805 */
28062806 deepPartial ( ) : partialUtil . DeepPartial < this> {
2807- return deepPartialify ( this ) as any ;
2807+ return deepPartialify ( this ) ;
28082808 }
28092809
28102810 partial ( ) : ZodObject < { [ k in keyof T ] : ZodOptional < T [ k ] > } , UnknownKeys , Catchall > ;
@@ -3072,7 +3072,7 @@ const getDiscriminator = <T extends ZodTypeAny>(type: T): Primitive[] => {
30723072 return type . options ;
30733073 } else if ( type instanceof ZodNativeEnum ) {
30743074 // eslint-disable-next-line ban/ban
3075- return util . objectValues ( type . enum as any ) ;
3075+ return util . objectValues ( type . enum ) ;
30763076 } else if ( type instanceof ZodDefault ) {
30773077 return getDiscriminator ( type . _def . innerType ) ;
30783078 } else if ( type instanceof ZodUndefined ) {
@@ -3309,7 +3309,7 @@ export class ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> extends
33093309 status . dirty ( ) ;
33103310 }
33113311
3312- return { status : status . value , value : merged . data as any } ;
3312+ return { status : status . value , value : merged . data } ;
33133313 } ;
33143314
33153315 if ( ctx . common . async ) {
@@ -3833,7 +3833,7 @@ export class ZodFunction<Args extends ZodTuple<any, any>, Returns extends ZodTyp
38333833 path : ctx . path ,
38343834 errorMaps : [ ctx . common . contextualErrorMap , ctx . schemaErrorMap , getErrorMap ( ) , defaultErrorMap ] . filter (
38353835 ( x ) => ! ! x
3836- ) as ZodErrorMap [ ] ,
3836+ ) ,
38373837 issueData : {
38383838 code : ZodIssueCode . invalid_arguments ,
38393839 argumentsError : error ,
@@ -3847,7 +3847,7 @@ export class ZodFunction<Args extends ZodTuple<any, any>, Returns extends ZodTyp
38473847 path : ctx . path ,
38483848 errorMaps : [ ctx . common . contextualErrorMap , ctx . schemaErrorMap , getErrorMap ( ) , defaultErrorMap ] . filter (
38493849 ( x ) => ! ! x
3850- ) as ZodErrorMap [ ] ,
3850+ ) ,
38513851 issueData : {
38523852 code : ZodIssueCode . invalid_return_type ,
38533853 returnTypeError : error ,
@@ -4115,23 +4115,23 @@ export class ZodEnum<T extends [string, ...string[]]> extends ZodType<T[number],
41154115 for ( const val of this . _def . values ) {
41164116 enumValues [ val ] = val ;
41174117 }
4118- return enumValues as any ;
4118+ return enumValues ;
41194119 }
41204120
41214121 get Values ( ) : Values < T > {
41224122 const enumValues : any = { } ;
41234123 for ( const val of this . _def . values ) {
41244124 enumValues [ val ] = val ;
41254125 }
4126- return enumValues as any ;
4126+ return enumValues ;
41274127 }
41284128
41294129 get Enum ( ) : Values < T > {
41304130 const enumValues : any = { } ;
41314131 for ( const val of this . _def . values ) {
41324132 enumValues [ val ] = val ;
41334133 }
4134- return enumValues as any ;
4134+ return enumValues ;
41354135 }
41364136
41374137 extract < ToExtract extends readonly [ T [ number ] , ...T [ number ] [ ] ] > (
@@ -4201,7 +4201,7 @@ export class ZodNativeEnum<T extends EnumLike> extends ZodType<T[keyof T], ZodNa
42014201 } ) ;
42024202 return INVALID ;
42034203 }
4204- return OK ( input . data as any ) ;
4204+ return OK ( input . data ) ;
42054205 }
42064206
42074207 get enum ( ) {
0 commit comments