/opt/canhelp/node_modules/better-auth/node_modules/zod/src/v4/classic
NameSizeModeActions
tests/-0755rm
checks.ts7610644editdlrm
coerce.ts15030644editdlrm
compat.ts21830644editdlrm
errors.ts29090644editdlrm
external.ts11680644editdlrm
from-json-schema.ts217080644editdlrm
index.ts1000644editdlrm
iso.ts31820644editdlrm
parse.ts32620644editdlrm
schemas.ts886140644editdlrm
Edit: /opt/canhelp/node_modules/better-auth/node_modules/zod/src/v4/classic/parse.ts (3262B)
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; // Codec functions export const encode: ( schema: T, value: core.output, _ctx?: core.ParseContext ) => core.input = /* @__PURE__ */ core._encode(ZodRealError) as any; export const decode: ( schema: T, value: core.input, _ctx?: core.ParseContext ) => core.output = /* @__PURE__ */ core._decode(ZodRealError) as any; export const encodeAsync: ( schema: T, value: core.output, _ctx?: core.ParseContext ) => Promise> = /* @__PURE__ */ core._encodeAsync(ZodRealError) as any; export const decodeAsync: ( schema: T, value: core.input, _ctx?: core.ParseContext ) => Promise> = /* @__PURE__ */ core._decodeAsync(ZodRealError) as any; export const safeEncode: ( schema: T, value: core.output, _ctx?: core.ParseContext ) => ZodSafeParseResult> = /* @__PURE__ */ core._safeEncode(ZodRealError) as any; export const safeDecode: ( schema: T, value: core.input, _ctx?: core.ParseContext ) => ZodSafeParseResult> = /* @__PURE__ */ core._safeDecode(ZodRealError) as any; export const safeEncodeAsync: ( schema: T, value: core.output, _ctx?: core.ParseContext ) => Promise>> = /* @__PURE__ */ core._safeEncodeAsync(ZodRealError) as any; export const safeDecodeAsync: ( schema: T, value: core.input, _ctx?: core.ParseContext ) => Promise>> = /* @__PURE__ */ core._safeDecodeAsync(ZodRealError) as any;