Skip to content

Commit

Permalink
Update types.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
roblabat authored Sep 6, 2022
1 parent e444359 commit bfdf124
Showing 1 changed file with 44 additions and 41 deletions.
85 changes: 44 additions & 41 deletions deno/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,47 +52,6 @@ export type TypeOf<T extends ZodType<any, any, any>> = T["_output"];
export type input<T extends ZodType<any, any, any>> = T["_input"];
export type output<T extends ZodType<any, any, any>> = T["_output"];
export type { TypeOf as infer };
export { ZodEffects as ZodTransformer };
export { ZodType as Schema, ZodType as ZodSchema };
export {
anyType as any,
arrayType as array,
bigIntType as bigint,
booleanType as boolean,
dateType as date,
discriminatedUnionType as discriminatedUnion,
effectsType as effect,
enumType as enum,
functionType as function,
instanceOfType as instanceof,
intersectionType as intersection,
lazyType as lazy,
literalType as literal,
mapType as map,
nanType as nan,
nativeEnumType as nativeEnum,
neverType as never,
nullType as null,
nullableType as nullable,
numberType as number,
objectType as object,
oboolean,
onumber,
optionalType as optional,
ostring,
preprocessType as preprocess,
promiseType as promise,
recordType as record,
setType as set,
strictObjectType as strictObject,
stringType as string,
effectsType as transformer,
tupleType as tuple,
undefinedType as undefined,
unionType as union,
unknownType as unknown,
voidType as void,
};

export type CustomErrorParams = Partial<util.Omit<ZodCustomIssue, "code">>;
export interface ZodTypeDef {
Expand Down Expand Up @@ -3641,6 +3600,8 @@ export class ZodEffects<
};
}

export { ZodEffects as ZodTransformer };

///////////////////////////////////////////
///////////////////////////////////////////
////////// //////////
Expand Down Expand Up @@ -3829,6 +3790,8 @@ export const custom = <T>(
return ZodAny.create();
};

export { ZodType as Schema, ZodType as ZodSchema };

export const late = {
object: ZodObject.lazycreate,
};
Expand Down Expand Up @@ -3941,3 +3904,43 @@ const preprocessType = ZodEffects.createWithPreprocess;
const ostring = () => stringType().optional();
const onumber = () => numberType().optional();
const oboolean = () => booleanType().optional();

export {
anyType as any,
arrayType as array,
bigIntType as bigint,
booleanType as boolean,
dateType as date,
discriminatedUnionType as discriminatedUnion,
effectsType as effect,
enumType as enum,
functionType as function,
instanceOfType as instanceof,
intersectionType as intersection,
lazyType as lazy,
literalType as literal,
mapType as map,
nanType as nan,
nativeEnumType as nativeEnum,
neverType as never,
nullType as null,
nullableType as nullable,
numberType as number,
objectType as object,
oboolean,
onumber,
optionalType as optional,
ostring,
preprocessType as preprocess,
promiseType as promise,
recordType as record,
setType as set,
strictObjectType as strictObject,
stringType as string,
effectsType as transformer,
tupleType as tuple,
undefinedType as undefined,
unionType as union,
unknownType as unknown,
voidType as void,
};

0 comments on commit bfdf124

Please sign in to comment.