/
opt
/
canhelp
/
node_modules
/
better-auth
/
node_modules
/
zod
/
v4
/
core
/
/opt/canhelp/node_modules/better-auth/node_modules/zod/v4/core
mkdir
upload
Name
Size
Mode
Actions
api.cjs
31472
0644
edit
dl
rm
api.d.cts
31840
0644
edit
dl
rm
api.d.ts
31834
0644
edit
dl
rm
api.js
27841
0644
edit
dl
rm
checks.cjs
21559
0644
edit
dl
rm
checks.d.cts
12814
0644
edit
dl
rm
checks.d.ts
12810
0644
edit
dl
rm
checks.js
20005
0644
edit
dl
rm
core.cjs
2745
0644
edit
dl
rm
core.d.cts
2252
0644
edit
dl
rm
core.d.ts
2249
0644
edit
dl
rm
core.js
2459
0644
edit
dl
rm
doc.cjs
1199
0644
edit
dl
rm
doc.d.cts
348
0644
edit
dl
rm
doc.d.ts
348
0644
edit
dl
rm
doc.js
1088
0644
edit
dl
rm
errors.cjs
7457
0644
edit
dl
rm
errors.d.cts
8808
0644
edit
dl
rm
errors.d.ts
8803
0644
edit
dl
rm
errors.js
6123
0644
edit
dl
rm
index.cjs
2609
0644
edit
dl
rm
index.d.cts
610
0644
edit
dl
rm
index.d.ts
594
0644
edit
dl
rm
index.js
594
0644
edit
dl
rm
json-schema-generator.cjs
3492
0644
edit
dl
rm
json-schema-generator.d.cts
2587
0644
edit
dl
rm
json-schema-generator.d.ts
2583
0644
edit
dl
rm
json-schema-generator.js
3218
0644
edit
dl
rm
json-schema-processors.cjs
24504
0644
edit
dl
rm
json-schema-processors.d.cts
3384
0644
edit
dl
rm
json-schema-processors.d.ts
3381
0644
edit
dl
rm
json-schema-processors.js
20882
0644
edit
dl
rm
json-schema.cjs
77
0644
edit
dl
rm
json-schema.d.cts
2764
0644
edit
dl
rm
json-schema.d.ts
2764
0644
edit
dl
rm
json-schema.js
11
0644
edit
dl
rm
package.json
104
0644
edit
dl
rm
parse.cjs
6565
0644
edit
dl
rm
parse.d.cts
3833
0644
edit
dl
rm
parse.d.ts
3829
0644
edit
dl
rm
parse.js
4528
0644
edit
dl
rm
regexes.cjs
10708
0644
edit
dl
rm
regexes.d.cts
3457
0644
edit
dl
rm
regexes.d.ts
3457
0644
edit
dl
rm
regexes.js
8840
0644
edit
dl
rm
registries.cjs
1717
0644
edit
dl
rm
registries.d.cts
1633
0644
edit
dl
rm
registries.d.ts
1631
0644
edit
dl
rm
registries.js
1512
0644
edit
dl
rm
schemas.cjs
79277
0644
edit
dl
rm
schemas.d.cts
51355
0644
edit
dl
rm
schemas.d.ts
51346
0644
edit
dl
rm
schemas.js
76984
0644
edit
dl
rm
standard-schema.cjs
77
0644
edit
dl
rm
standard-schema.d.cts
6321
0644
edit
dl
rm
standard-schema.d.ts
6321
0644
edit
dl
rm
standard-schema.js
11
0644
edit
dl
rm
to-json-schema.cjs
16833
0644
edit
dl
rm
to-json-schema.d.cts
5626
0644
edit
dl
rm
to-json-schema.d.ts
5621
0644
edit
dl
rm
to-json-schema.js
16397
0644
edit
dl
rm
util.cjs
23197
0644
edit
dl
rm
util.d.cts
11916
0644
edit
dl
rm
util.d.ts
11912
0644
edit
dl
rm
util.js
21335
0644
edit
dl
rm
versions.cjs
168
0644
edit
dl
rm
versions.d.cts
109
0644
edit
dl
rm
versions.d.ts
109
0644
edit
dl
rm
versions.js
70
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/better-auth/node_modules/zod/v4/core/errors.d.cts
(8808B)
import type { $ZodCheck, $ZodStringFormats } from "./checks.cjs"; import { $constructor } from "./core.cjs"; import type { $ZodType } from "./schemas.cjs"; import type { StandardSchemaV1 } from "./standard-schema.cjs"; import * as util from "./util.cjs"; export interface $ZodIssueBase { readonly code?: string; readonly input?: unknown; readonly path: PropertyKey[]; readonly message: string; } export type $ZodInvalidTypeExpected = "string" | "number" | "int" | "boolean" | "bigint" | "symbol" | "undefined" | "null" | "never" | "void" | "date" | "array" | "object" | "tuple" | "record" | "map" | "set" | "file" | "nonoptional" | "nan" | "function" | (string & {}); export interface $ZodIssueInvalidType<Input = unknown> extends $ZodIssueBase { readonly code: "invalid_type"; readonly expected: $ZodInvalidTypeExpected; readonly input?: Input; } export interface $ZodIssueTooBig<Input = unknown> extends $ZodIssueBase { readonly code: "too_big"; readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {}); readonly maximum: number | bigint; readonly inclusive?: boolean; readonly exact?: boolean; readonly input?: Input; } export interface $ZodIssueTooSmall<Input = unknown> extends $ZodIssueBase { readonly code: "too_small"; readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {}); readonly minimum: number | bigint; /** True if the allowable range includes the minimum */ readonly inclusive?: boolean; /** True if the allowed value is fixed (e.g.` z.length(5)`), not a range (`z.minLength(5)`) */ readonly exact?: boolean; readonly input?: Input; } export interface $ZodIssueInvalidStringFormat extends $ZodIssueBase { readonly code: "invalid_format"; readonly format: $ZodStringFormats | (string & {}); readonly pattern?: string; readonly input?: string; } export interface $ZodIssueNotMultipleOf<Input extends number | bigint = number | bigint> extends $ZodIssueBase { readonly code: "not_multiple_of"; readonly divisor: number; readonly input?: Input; } export interface $ZodIssueUnrecognizedKeys extends $ZodIssueBase { readonly code: "unrecognized_keys"; readonly keys: string[]; readonly input?: Record<string, unknown>; } interface $ZodIssueInvalidUnionNoMatch extends $ZodIssueBase { readonly code: "invalid_union"; readonly errors: $ZodIssue[][]; readonly input?: unknown; readonly discriminator?: string | undefined; readonly inclusive?: true; } interface $ZodIssueInvalidUnionMultipleMatch extends $ZodIssueBase { readonly code: "invalid_union"; readonly errors: []; readonly input?: unknown; readonly discriminator?: string | undefined; readonly inclusive: false; } export type $ZodIssueInvalidUnion = $ZodIssueInvalidUnionNoMatch | $ZodIssueInvalidUnionMultipleMatch; export interface $ZodIssueInvalidKey<Input = unknown> extends $ZodIssueBase { readonly code: "invalid_key"; readonly origin: "map" | "record"; readonly issues: $ZodIssue[]; readonly input?: Input; } export interface $ZodIssueInvalidElement<Input = unknown> extends $ZodIssueBase { readonly code: "invalid_element"; readonly origin: "map" | "set"; readonly key: unknown; readonly issues: $ZodIssue[]; readonly input?: Input; } export interface $ZodIssueInvalidValue<Input = unknown> extends $ZodIssueBase { readonly code: "invalid_value"; readonly values: util.Primitive[]; readonly input?: Input; } export interface $ZodIssueCustom extends $ZodIssueBase { readonly code: "custom"; readonly params?: Record<string, any> | undefined; readonly input?: unknown; } export interface $ZodIssueStringCommonFormats extends $ZodIssueInvalidStringFormat { format: Exclude<$ZodStringFormats, "regex" | "jwt" | "starts_with" | "ends_with" | "includes">; } export interface $ZodIssueStringInvalidRegex extends $ZodIssueInvalidStringFormat { format: "regex"; pattern: string; } export interface $ZodIssueStringInvalidJWT extends $ZodIssueInvalidStringFormat { format: "jwt"; algorithm?: string; } export interface $ZodIssueStringStartsWith extends $ZodIssueInvalidStringFormat { format: "starts_with"; prefix: string; } export interface $ZodIssueStringEndsWith extends $ZodIssueInvalidStringFormat { format: "ends_with"; suffix: string; } export interface $ZodIssueStringIncludes extends $ZodIssueInvalidStringFormat { format: "includes"; includes: string; } export type $ZodStringFormatIssues = $ZodIssueStringCommonFormats | $ZodIssueStringInvalidRegex | $ZodIssueStringInvalidJWT | $ZodIssueStringStartsWith | $ZodIssueStringEndsWith | $ZodIssueStringIncludes; export type $ZodIssue = $ZodIssueInvalidType | $ZodIssueTooBig | $ZodIssueTooSmall | $ZodIssueInvalidStringFormat | $ZodIssueNotMultipleOf | $ZodIssueUnrecognizedKeys | $ZodIssueInvalidUnion | $ZodIssueInvalidKey | $ZodIssueInvalidElement | $ZodIssueInvalidValue | $ZodIssueCustom; export type $ZodIssueCode = $ZodIssue["code"]; export type $ZodInternalIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue<T> : never; type RawIssue<T extends $ZodIssueBase> = T extends any ? util.Flatten<util.MakePartial<T, "message" | "path"> & { /** The input data */ readonly input: unknown; /** The schema or check that originated this issue. */ readonly inst?: $ZodType | $ZodCheck; /** If `true`, Zod will continue executing checks/refinements after this issue. */ readonly continue?: boolean | undefined; } & Record<string, unknown>> : never; export type $ZodRawIssue<T extends $ZodIssueBase = $ZodIssue> = $ZodInternalIssue<T>; export interface $ZodErrorMap<T extends $ZodIssueBase = $ZodIssue> { (issue: $ZodRawIssue<T>): { message: string; } | string | undefined | null; } export interface $ZodError<T = unknown> extends Error { type: T; issues: $ZodIssue[]; _zod: { output: T; def: $ZodIssue[]; }; stack?: string; name: string; } export declare const $ZodError: $constructor<$ZodError>; interface $ZodRealError<T = any> extends $ZodError<T> { } export declare const $ZodRealError: $constructor<$ZodRealError>; export type $ZodFlattenedError<T, U = string> = _FlattenedError<T, U>; type _FlattenedError<T, U = string> = { formErrors: U[]; fieldErrors: { [P in keyof T]?: U[]; }; }; export declare function flattenError<T>(error: $ZodError<T>): _FlattenedError<T>; export declare function flattenError<T, U>(error: $ZodError<T>, mapper?: (issue: $ZodIssue) => U): _FlattenedError<T, U>; type _ZodFormattedError<T, U = string> = T extends [any, ...any[]] ? { [K in keyof T]?: $ZodFormattedError<T[K], U>; } : T extends any[] ? { [k: number]: $ZodFormattedError<T[number], U>; } : T extends object ? util.Flatten<{ [K in keyof T]?: $ZodFormattedError<T[K], U>; }> : any; export type $ZodFormattedError<T, U = string> = { _errors: U[]; } & util.Flatten<_ZodFormattedError<T, U>>; export declare function formatError<T>(error: $ZodError<T>): $ZodFormattedError<T>; export declare function formatError<T, U>(error: $ZodError<T>, mapper?: (issue: $ZodIssue) => U): $ZodFormattedError<T, U>; export type $ZodErrorTree<T, U = string> = T extends util.Primitive ? { errors: U[]; } : T extends [any, ...any[]] ? { errors: U[]; items?: { [K in keyof T]?: $ZodErrorTree<T[K], U>; }; } : T extends any[] ? { errors: U[]; items?: Array<$ZodErrorTree<T[number], U>>; } : T extends object ? { errors: U[]; properties?: { [K in keyof T]?: $ZodErrorTree<T[K], U>; }; } : { errors: U[]; }; export declare function treeifyError<T>(error: $ZodError<T>): $ZodErrorTree<T>; export declare function treeifyError<T, U>(error: $ZodError<T>, mapper?: (issue: $ZodIssue) => U): $ZodErrorTree<T, U>; /** Format a ZodError as a human-readable string in the following form. * * From * * ```ts * ZodError { * issues: [ * { * expected: 'string', * code: 'invalid_type', * path: [ 'username' ], * message: 'Invalid input: expected string' * }, * { * expected: 'number', * code: 'invalid_type', * path: [ 'favoriteNumbers', 1 ], * message: 'Invalid input: expected number' * } * ]; * } * ``` * * to * * ``` * username * ✖ Expected number, received string at "username * favoriteNumbers[0] * ✖ Invalid input: expected number * ``` */ export declare function toDotPath(_path: readonly (string | number | symbol | StandardSchemaV1.PathSegment)[]): string; export declare function prettifyError(error: StandardSchemaV1.FailureResult): string; export {};
Save
cmd:
run