Skip to content

Commit c0d0669

Browse files
committed
fix unwanted export move
1 parent e444359 commit c0d0669

File tree

2 files changed

+88
-82
lines changed

2 files changed

+88
-82
lines changed

deno/lib/types.ts

Lines changed: 44 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -52,47 +52,6 @@ export type TypeOf<T extends ZodType<any, any, any>> = T["_output"];
5252
export type input<T extends ZodType<any, any, any>> = T["_input"];
5353
export type output<T extends ZodType<any, any, any>> = T["_output"];
5454
export type { TypeOf as infer };
55-
export { ZodEffects as ZodTransformer };
56-
export { ZodType as Schema, ZodType as ZodSchema };
57-
export {
58-
anyType as any,
59-
arrayType as array,
60-
bigIntType as bigint,
61-
booleanType as boolean,
62-
dateType as date,
63-
discriminatedUnionType as discriminatedUnion,
64-
effectsType as effect,
65-
enumType as enum,
66-
functionType as function,
67-
instanceOfType as instanceof,
68-
intersectionType as intersection,
69-
lazyType as lazy,
70-
literalType as literal,
71-
mapType as map,
72-
nanType as nan,
73-
nativeEnumType as nativeEnum,
74-
neverType as never,
75-
nullType as null,
76-
nullableType as nullable,
77-
numberType as number,
78-
objectType as object,
79-
oboolean,
80-
onumber,
81-
optionalType as optional,
82-
ostring,
83-
preprocessType as preprocess,
84-
promiseType as promise,
85-
recordType as record,
86-
setType as set,
87-
strictObjectType as strictObject,
88-
stringType as string,
89-
effectsType as transformer,
90-
tupleType as tuple,
91-
undefinedType as undefined,
92-
unionType as union,
93-
unknownType as unknown,
94-
voidType as void,
95-
};
9655

9756
export type CustomErrorParams = Partial<util.Omit<ZodCustomIssue, "code">>;
9857
export interface ZodTypeDef {
@@ -3641,6 +3600,8 @@ export class ZodEffects<
36413600
};
36423601
}
36433602

3603+
export { ZodEffects as ZodTransformer };
3604+
36443605
///////////////////////////////////////////
36453606
///////////////////////////////////////////
36463607
////////// //////////
@@ -3829,6 +3790,8 @@ export const custom = <T>(
38293790
return ZodAny.create();
38303791
};
38313792

3793+
export { ZodType as Schema, ZodType as ZodSchema };
3794+
38323795
export const late = {
38333796
object: ZodObject.lazycreate,
38343797
};
@@ -3941,3 +3904,43 @@ const preprocessType = ZodEffects.createWithPreprocess;
39413904
const ostring = () => stringType().optional();
39423905
const onumber = () => numberType().optional();
39433906
const oboolean = () => booleanType().optional();
3907+
3908+
export {
3909+
anyType as any,
3910+
arrayType as array,
3911+
bigIntType as bigint,
3912+
booleanType as boolean,
3913+
dateType as date,
3914+
discriminatedUnionType as discriminatedUnion,
3915+
effectsType as effect,
3916+
enumType as enum,
3917+
functionType as function,
3918+
instanceOfType as instanceof,
3919+
intersectionType as intersection,
3920+
lazyType as lazy,
3921+
literalType as literal,
3922+
mapType as map,
3923+
nanType as nan,
3924+
nativeEnumType as nativeEnum,
3925+
neverType as never,
3926+
nullType as null,
3927+
nullableType as nullable,
3928+
numberType as number,
3929+
objectType as object,
3930+
oboolean,
3931+
onumber,
3932+
optionalType as optional,
3933+
ostring,
3934+
preprocessType as preprocess,
3935+
promiseType as promise,
3936+
recordType as record,
3937+
setType as set,
3938+
strictObjectType as strictObject,
3939+
stringType as string,
3940+
effectsType as transformer,
3941+
tupleType as tuple,
3942+
undefinedType as undefined,
3943+
unionType as union,
3944+
unknownType as unknown,
3945+
voidType as void,
3946+
};

src/types.ts

Lines changed: 44 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -52,47 +52,6 @@ export type TypeOf<T extends ZodType<any, any, any>> = T["_output"];
5252
export type input<T extends ZodType<any, any, any>> = T["_input"];
5353
export type output<T extends ZodType<any, any, any>> = T["_output"];
5454
export type { TypeOf as infer };
55-
export { ZodEffects as ZodTransformer };
56-
export { ZodType as Schema, ZodType as ZodSchema };
57-
export {
58-
anyType as any,
59-
arrayType as array,
60-
bigIntType as bigint,
61-
booleanType as boolean,
62-
dateType as date,
63-
discriminatedUnionType as discriminatedUnion,
64-
effectsType as effect,
65-
enumType as enum,
66-
functionType as function,
67-
instanceOfType as instanceof,
68-
intersectionType as intersection,
69-
lazyType as lazy,
70-
literalType as literal,
71-
mapType as map,
72-
nanType as nan,
73-
nativeEnumType as nativeEnum,
74-
neverType as never,
75-
nullType as null,
76-
nullableType as nullable,
77-
numberType as number,
78-
objectType as object,
79-
oboolean,
80-
onumber,
81-
optionalType as optional,
82-
ostring,
83-
preprocessType as preprocess,
84-
promiseType as promise,
85-
recordType as record,
86-
setType as set,
87-
strictObjectType as strictObject,
88-
stringType as string,
89-
effectsType as transformer,
90-
tupleType as tuple,
91-
undefinedType as undefined,
92-
unionType as union,
93-
unknownType as unknown,
94-
voidType as void,
95-
};
9655

9756
export type CustomErrorParams = Partial<util.Omit<ZodCustomIssue, "code">>;
9857
export interface ZodTypeDef {
@@ -3641,6 +3600,8 @@ export class ZodEffects<
36413600
};
36423601
}
36433602

3603+
export { ZodEffects as ZodTransformer };
3604+
36443605
///////////////////////////////////////////
36453606
///////////////////////////////////////////
36463607
////////// //////////
@@ -3829,6 +3790,8 @@ export const custom = <T>(
38293790
return ZodAny.create();
38303791
};
38313792

3793+
export { ZodType as Schema, ZodType as ZodSchema };
3794+
38323795
export const late = {
38333796
object: ZodObject.lazycreate,
38343797
};
@@ -3941,3 +3904,43 @@ const preprocessType = ZodEffects.createWithPreprocess;
39413904
const ostring = () => stringType().optional();
39423905
const onumber = () => numberType().optional();
39433906
const oboolean = () => booleanType().optional();
3907+
3908+
export {
3909+
anyType as any,
3910+
arrayType as array,
3911+
bigIntType as bigint,
3912+
booleanType as boolean,
3913+
dateType as date,
3914+
discriminatedUnionType as discriminatedUnion,
3915+
effectsType as effect,
3916+
enumType as enum,
3917+
functionType as function,
3918+
instanceOfType as instanceof,
3919+
intersectionType as intersection,
3920+
lazyType as lazy,
3921+
literalType as literal,
3922+
mapType as map,
3923+
nanType as nan,
3924+
nativeEnumType as nativeEnum,
3925+
neverType as never,
3926+
nullType as null,
3927+
nullableType as nullable,
3928+
numberType as number,
3929+
objectType as object,
3930+
oboolean,
3931+
onumber,
3932+
optionalType as optional,
3933+
ostring,
3934+
preprocessType as preprocess,
3935+
promiseType as promise,
3936+
recordType as record,
3937+
setType as set,
3938+
strictObjectType as strictObject,
3939+
stringType as string,
3940+
effectsType as transformer,
3941+
tupleType as tuple,
3942+
undefinedType as undefined,
3943+
unionType as union,
3944+
unknownType as unknown,
3945+
voidType as void,
3946+
};

0 commit comments

Comments
 (0)