/opt/canhelp/node_modules/better-auth/node_modules/zod/v3
NameSizeModeActions
helpers/-0755rm
locales/-0755rm
errors.cjs5790644editdlrm
errors.d.cts2400644editdlrm
errors.d.ts2380644editdlrm
errors.js2430644editdlrm
external.cjs10760644editdlrm
external.d.cts2110644editdlrm
external.d.ts2050644editdlrm
external.js2050644editdlrm
index.cjs14640644editdlrm
index.d.cts1010644editdlrm
index.d.ts990644editdlrm
index.js990644editdlrm
package.json1040644editdlrm
standard-schema.cjs770644editdlrm
standard-schema.d.cts28430644editdlrm
standard-schema.d.ts28430644editdlrm
standard-schema.js110644editdlrm
types.cjs1401560644editdlrm
types.d.cts520350644editdlrm
types.d.ts520270644editdlrm
types.js1312680644editdlrm
ZodError.cjs45930644editdlrm
ZodError.d.cts64150644editdlrm
ZodError.d.ts64120644editdlrm
ZodError.js43660644editdlrm
Edit: /opt/canhelp/node_modules/better-auth/node_modules/zod/v3/ZodError.d.cts (6415B)
import type { Primitive } from "./helpers/typeAliases.cjs"; import { util, type ZodParsedType } from "./helpers/util.cjs"; import type { TypeOf, ZodType } from "./index.cjs"; type allKeys = T extends any ? keyof T : never; export type inferFlattenedErrors, U = string> = typeToFlattenedError, U>; export type typeToFlattenedError = { formErrors: U[]; fieldErrors: { [P in allKeys]?: U[]; }; }; export declare const ZodIssueCode: { custom: "custom"; invalid_type: "invalid_type"; too_big: "too_big"; too_small: "too_small"; not_multiple_of: "not_multiple_of"; unrecognized_keys: "unrecognized_keys"; invalid_union: "invalid_union"; invalid_literal: "invalid_literal"; invalid_union_discriminator: "invalid_union_discriminator"; invalid_enum_value: "invalid_enum_value"; invalid_arguments: "invalid_arguments"; invalid_return_type: "invalid_return_type"; invalid_date: "invalid_date"; invalid_string: "invalid_string"; invalid_intersection_types: "invalid_intersection_types"; not_finite: "not_finite"; }; export type ZodIssueCode = keyof typeof ZodIssueCode; export type ZodIssueBase = { path: (string | number)[]; message?: string | undefined; }; export interface ZodInvalidTypeIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_type; expected: ZodParsedType; received: ZodParsedType; } export interface ZodInvalidLiteralIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_literal; expected: unknown; received: unknown; } export interface ZodUnrecognizedKeysIssue extends ZodIssueBase { code: typeof ZodIssueCode.unrecognized_keys; keys: string[]; } export interface ZodInvalidUnionIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_union; unionErrors: ZodError[]; } export interface ZodInvalidUnionDiscriminatorIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_union_discriminator; options: Primitive[]; } export interface ZodInvalidEnumValueIssue extends ZodIssueBase { received: string | number; code: typeof ZodIssueCode.invalid_enum_value; options: (string | number)[]; } export interface ZodInvalidArgumentsIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_arguments; argumentsError: ZodError; } export interface ZodInvalidReturnTypeIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_return_type; returnTypeError: ZodError; } export interface ZodInvalidDateIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_date; } export type StringValidation = "email" | "url" | "emoji" | "uuid" | "nanoid" | "regex" | "cuid" | "cuid2" | "ulid" | "datetime" | "date" | "time" | "duration" | "ip" | "cidr" | "base64" | "jwt" | "base64url" | { includes: string; position?: number | undefined; } | { startsWith: string; } | { endsWith: string; }; export interface ZodInvalidStringIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_string; validation: StringValidation; } export interface ZodTooSmallIssue extends ZodIssueBase { code: typeof ZodIssueCode.too_small; minimum: number | bigint; inclusive: boolean; exact?: boolean; type: "array" | "string" | "number" | "set" | "date" | "bigint"; } export interface ZodTooBigIssue extends ZodIssueBase { code: typeof ZodIssueCode.too_big; maximum: number | bigint; inclusive: boolean; exact?: boolean; type: "array" | "string" | "number" | "set" | "date" | "bigint"; } export interface ZodInvalidIntersectionTypesIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_intersection_types; } export interface ZodNotMultipleOfIssue extends ZodIssueBase { code: typeof ZodIssueCode.not_multiple_of; multipleOf: number | bigint; } export interface ZodNotFiniteIssue extends ZodIssueBase { code: typeof ZodIssueCode.not_finite; } export interface ZodCustomIssue extends ZodIssueBase { code: typeof ZodIssueCode.custom; params?: { [k: string]: any; }; } export type DenormalizedError = { [k: string]: DenormalizedError | string[]; }; export type ZodIssueOptionalMessage = ZodInvalidTypeIssue | ZodInvalidLiteralIssue | ZodUnrecognizedKeysIssue | ZodInvalidUnionIssue | ZodInvalidUnionDiscriminatorIssue | ZodInvalidEnumValueIssue | ZodInvalidArgumentsIssue | ZodInvalidReturnTypeIssue | ZodInvalidDateIssue | ZodInvalidStringIssue | ZodTooSmallIssue | ZodTooBigIssue | ZodInvalidIntersectionTypesIssue | ZodNotMultipleOfIssue | ZodNotFiniteIssue | ZodCustomIssue; export type ZodIssue = ZodIssueOptionalMessage & { fatal?: boolean | undefined; message: string; }; export declare const quotelessJson: (obj: any) => string; type recursiveZodFormattedError = T extends [any, ...any[]] ? { [K in keyof T]?: ZodFormattedError; } : T extends any[] ? { [k: number]: ZodFormattedError; } : T extends object ? { [K in keyof T]?: ZodFormattedError; } : unknown; export type ZodFormattedError = { _errors: U[]; } & recursiveZodFormattedError>; export type inferFormattedError, U = string> = ZodFormattedError, U>; export declare class ZodError extends Error { issues: ZodIssue[]; get errors(): ZodIssue[]; constructor(issues: ZodIssue[]); format(): ZodFormattedError; format(mapper: (issue: ZodIssue) => U): ZodFormattedError; static create: (issues: ZodIssue[]) => ZodError; static assert(value: unknown): asserts value is ZodError; toString(): string; get message(): string; get isEmpty(): boolean; addIssue: (sub: ZodIssue) => void; addIssues: (subs?: ZodIssue[]) => void; flatten(): typeToFlattenedError; flatten(mapper?: (issue: ZodIssue) => U): typeToFlattenedError; get formErrors(): typeToFlattenedError; } type stripPath = T extends any ? util.OmitKeys : never; export type IssueData = stripPath & { path?: (string | number)[]; fatal?: boolean | undefined; }; export type ErrorMapCtx = { defaultError: string; data: any; }; export type ZodErrorMap = (issue: ZodIssueOptionalMessage, _ctx: ErrorMapCtx) => { message: string; }; export {};