ZodSchema
abstractabstract class ZodSchema<Type, Def extends ZodTypeDef = ZodTypeDef> { }
constructor(def: Def);
readonly _def: Def;
_refinement: (refinement: InternalCheck<Type>) => this;
readonly _type: Type;
array: () => ZodArray<this>;
optional: () => ZodUnion<[this, ZodUndefined]>;
parse: (x: Type | unknown, params?: ParseParams) => Type;
parseAsync: (x: Type | unknown, params?: ParseParams) => Promise<Type>;
refine: <Func extends (arg: Type) => any>(check: Func, message?: string | Pick<Check<Type>, "path" | "message" | "params">) => this;
refinement: (refinement: Check<Type>) => this;
safeParse: (x: Type | unknown, params?: ParseParams) => {
success: true;
data: Type;
} | {success: false;
error: ZodError;
};abstract toJSON: () => object;
check(u: Type | unknown): u is Type;
is(u: Type): u is Type;