/opt/canhelp/node_modules/zod/src/v4/classic
NameSizeModeActions
tests/-0755rm
checks.ts6980644editdlrm
coerce.ts15030644editdlrm
compat.ts20050644editdlrm
errors.ts26640644editdlrm
external.ts10660644editdlrm
index.ts1000644editdlrm
iso.ts31820644editdlrm
parse.ts14390644editdlrm
schemas.ts719290644editdlrm
Edit: /opt/canhelp/node_modules/zod/src/v4/classic/parse.ts (1439B)
import * as core from "../core/index.js"; import { type ZodError, ZodRealError } from "./errors.js"; export type ZodSafeParseResult = ZodSafeParseSuccess | ZodSafeParseError; export type ZodSafeParseSuccess = { success: true; data: T; error?: never }; export type ZodSafeParseError = { success: false; data?: never; error: ZodError }; export const parse: ( schema: T, value: unknown, _ctx?: core.ParseContext, _params?: { callee?: core.util.AnyFunc; Err?: core.$ZodErrorClass } ) => core.output = /* @__PURE__ */ core._parse(ZodRealError) as any; export const parseAsync: ( schema: T, value: unknown, _ctx?: core.ParseContext, _params?: { callee?: core.util.AnyFunc; Err?: core.$ZodErrorClass } ) => Promise> = /* @__PURE__ */ core._parseAsync(ZodRealError) as any; export const safeParse: ( schema: T, value: unknown, _ctx?: core.ParseContext // _params?: { callee?: core.util.AnyFunc; Err?: core.$ZodErrorClass } ) => ZodSafeParseResult> = /* @__PURE__ */ core._safeParse(ZodRealError) as any; export const safeParseAsync: ( schema: T, value: unknown, _ctx?: core.ParseContext ) => Promise>> = /* @__PURE__ */ core._safeParseAsync(ZodRealError) as any;