/opt/canhelp/node_modules/zod/v4/core
NameSizeModeActions
api.cjs264650644editdlrm
api.d.cts294450644editdlrm
api.d.ts294400644editdlrm
api.js229830644editdlrm
checks.cjs210980644editdlrm
checks.d.cts127820644editdlrm
checks.d.ts127780644editdlrm
checks.js195440644editdlrm
core.cjs23090644editdlrm
core.d.cts18110644editdlrm
core.d.ts18080644editdlrm
core.js20850644editdlrm
doc.cjs11990644editdlrm
doc.d.cts3530644editdlrm
doc.d.ts3530644editdlrm
doc.js10880644editdlrm
errors.cjs76500644editdlrm
errors.d.cts78930644editdlrm
errors.d.ts78890644editdlrm
errors.js63160644editdlrm
function.cjs40120644editdlrm
function.d.cts35970644editdlrm
function.d.ts35930644editdlrm
function.js27170644editdlrm
index.cjs21630644editdlrm
index.d.cts5140644editdlrm
index.d.ts4990644editdlrm
index.js4990644editdlrm
json-schema.cjs770644editdlrm
json-schema.d.cts26760644editdlrm
json-schema.d.ts26760644editdlrm
json-schema.js110644editdlrm
parse.cjs39570644editdlrm
parse.d.cts15050644editdlrm
parse.d.ts15010644editdlrm
parse.js25520644editdlrm
regexes.cjs70620644editdlrm
regexes.d.cts27620644editdlrm
regexes.d.ts27620644editdlrm
regexes.js64110644editdlrm
registries.cjs16760644editdlrm
registries.d.cts16460644editdlrm
registries.d.ts16440644editdlrm
registries.js14850644editdlrm
schemas.cjs648430644editdlrm
schemas.d.cts446980644editdlrm
schemas.d.ts446910644editdlrm
schemas.js626520644editdlrm
standard-schema.cjs770644editdlrm
standard-schema.d.cts24030644editdlrm
standard-schema.d.ts24030644editdlrm
standard-schema.js110644editdlrm
to-json-schema.cjs359100644editdlrm
to-json-schema.d.cts37290644editdlrm
to-json-schema.d.ts37260644editdlrm
to-json-schema.js356870644editdlrm
util.cjs164380644editdlrm
util.d.cts107500644editdlrm
util.d.ts107460644editdlrm
util.js150040644editdlrm
versions.cjs1680644editdlrm
versions.d.cts1090644editdlrm
versions.d.ts1090644editdlrm
versions.js700644editdlrm
Edit: /opt/canhelp/node_modules/zod/v4/core/util.d.cts (10750B)
import type * as checks from "./checks.cjs"; import type { $ZodConfig } from "./core.cjs"; import type * as errors from "./errors.cjs"; import type * as schemas from "./schemas.cjs"; export type JSONType = string | number | boolean | null | JSONType[] | { [key: string]: JSONType; }; export type JWTAlgorithm = "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | (string & {}); export type IPVersion = "v4" | "v6"; export type MimeTypes = "application/json" | "application/xml" | "application/x-www-form-urlencoded" | "application/javascript" | "application/pdf" | "application/zip" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/octet-stream" | "application/graphql" | "text/html" | "text/plain" | "text/css" | "text/javascript" | "text/csv" | "image/png" | "image/jpeg" | "image/gif" | "image/svg+xml" | "image/webp" | "audio/mpeg" | "audio/ogg" | "audio/wav" | "audio/webm" | "video/mp4" | "video/webm" | "video/ogg" | "font/woff" | "font/woff2" | "font/ttf" | "font/otf" | "multipart/form-data" | (string & {}); export type ParsedTypes = "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "file" | "date" | "array" | "map" | "set" | "nan" | "null" | "promise"; export type AssertEqual = (() => V extends T ? 1 : 2) extends () => V extends U ? 1 : 2 ? true : false; export type AssertNotEqual = (() => V extends T ? 1 : 2) extends () => V extends U ? 1 : 2 ? false : true; export type AssertExtends = T extends U ? T : never; export type IsAny = 0 extends 1 & T ? true : false; export type Omit = Pick>; export type OmitKeys = Pick>; export type MakePartial = Omit & InexactPartial>; export type MakeRequired = Omit & Required>; export type Exactly = T & Record, never>; export type NoUndefined = T extends undefined ? never : T; export type Whatever = {} | undefined | null; export type LoosePartial = InexactPartial & { [k: string]: unknown; }; export type Mask = { [K in Keys]?: true; }; export type Writeable = { -readonly [P in keyof T]: T[P]; } & {}; export type InexactPartial = { [P in keyof T]?: T[P] | undefined; }; export type EmptyObject = Record; export type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | { readonly [Symbol.toStringTag]: string; } | Date | Error | Generator | Promise | RegExp; export type MakeReadonly = T extends Map ? ReadonlyMap : T extends Set ? ReadonlySet : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T extends Array ? ReadonlyArray : T extends BuiltIn ? T : Readonly; export type SomeObject = Record; export type Identity = T; export type Flatten = Identity<{ [k in keyof T]: T[k]; }>; export type Mapped = { [k in keyof T]: T[k]; }; export type Prettify = { [K in keyof T]: T[K]; } & {}; export type NoNeverKeys = { [k in keyof T]: [T[k]] extends [never] ? never : k; }[keyof T]; export type NoNever = Identity<{ [k in NoNeverKeys]: k extends keyof T ? T[k] : never; }>; export type Extend = Flatten; export type TupleItems = ReadonlyArray; export type AnyFunc = (...args: any[]) => any; export type IsProp = T[K] extends AnyFunc ? never : K; export type MaybeAsync = T | Promise; export type KeyOf = keyof OmitIndexSignature; export type OmitIndexSignature = { [K in keyof T as string extends K ? never : K extends string ? K : never]: T[K]; }; export type ExtractIndexSignature = { [K in keyof T as string extends K ? K : K extends string ? never : K]: T[K]; }; export type Keys = keyof OmitIndexSignature; export type SchemaClass = { new (def: T["_zod"]["def"]): T; }; export type EnumValue = string | number; export type EnumLike = Readonly>; export type ToEnum = Flatten<{ [k in T]: k; }>; export type KeysEnum = ToEnum>; export type KeysArray = Flatten<(keyof T & string)[]>; export type Literal = string | number | bigint | boolean | null | undefined; export type LiteralArray = Array; export type Primitive = string | number | symbol | bigint | boolean | null | undefined; export type PrimitiveArray = Array; export type HasSize = { size: number; }; export type HasLength = { length: number; }; export type Numeric = number | bigint | Date; export type SafeParseResult = SafeParseSuccess | SafeParseError; export type SafeParseSuccess = { success: true; data: T; error?: never; }; export type SafeParseError = { success: false; data?: never; error: errors.$ZodError; }; export type PropValues = Record>; export type PrimitiveSet = Set; export declare function assertEqual(val: AssertEqual): AssertEqual; export declare function assertNotEqual(val: AssertNotEqual): AssertNotEqual; export declare function assertIs(_arg: T): void; export declare function assertNever(_x: never): never; export declare function assert(_: any): asserts _ is T; export declare function getEnumValues(entries: EnumLike): EnumValue[]; export declare function joinValues(array: T, separator?: string): string; export declare function jsonStringifyReplacer(_: string, value: any): any; export declare function cached(getter: () => T): { value: T; }; export declare function nullish(input: any): boolean; export declare function cleanRegex(source: string): string; export declare function floatSafeRemainder(val: number, step: number): number; export declare function defineLazy(object: T, key: K, getter: () => T[K]): void; export declare function assignProp(target: T, prop: K, value: K extends keyof T ? T[K] : any): void; export declare function getElementAtPath(obj: any, path: (string | number)[] | null | undefined): any; export declare function promiseAllObject(promisesObj: T): Promise<{ [k in keyof T]: Awaited; }>; export declare function randomString(length?: number): string; export declare function esc(str: string): string; export declare const captureStackTrace: (targetObject: object, constructorOpt?: Function) => void; export declare function isObject(data: any): data is Record; export declare const allowsEval: { value: boolean; }; export declare function isPlainObject(o: any): o is Record; export declare function numKeys(data: any): number; export declare const getParsedType: (data: any) => ParsedTypes; export declare const propertyKeyTypes: Set; export declare const primitiveTypes: Set; export declare function escapeRegex(str: string): string; export declare function clone(inst: T, def?: T["_zod"]["def"], params?: { parent: boolean; }): T; export type EmptyToNever = keyof T extends never ? never : T; export type Normalize = T extends undefined ? never : T extends Record ? Flatten<{ [k in keyof Omit]: T[k]; } & ("error" extends keyof T ? { error?: Exclude; } : unknown)> : never; export declare function normalizeParams(_params: T): Normalize; export declare function createTransparentProxy(getter: () => T): T; export declare function stringifyPrimitive(value: any): string; export declare function optionalKeys(shape: schemas.$ZodShape): string[]; export type CleanKey = T extends `?${infer K}` ? K : T extends `${infer K}?` ? K : T; export type ToCleanMap = { [k in keyof T]: k extends `?${infer K}` ? K : k extends `${infer K}?` ? K : k; }; export type FromCleanMap = { [k in keyof T as k extends `?${infer K}` ? K : k extends `${infer K}?` ? K : k]: k; }; export declare const NUMBER_FORMAT_RANGES: Record; export declare const BIGINT_FORMAT_RANGES: Record; export declare function pick(schema: schemas.$ZodObject, mask: Record): any; export declare function omit(schema: schemas.$ZodObject, mask: object): any; export declare function extend(schema: schemas.$ZodObject, shape: schemas.$ZodShape): any; export declare function merge(a: schemas.$ZodObject, b: schemas.$ZodObject): any; export declare function partial(Class: SchemaClass | null, schema: schemas.$ZodObject, mask: object | undefined): any; export declare function required(Class: SchemaClass, schema: schemas.$ZodObject, mask: object | undefined): any; export type Constructor = new (...args: Def) => T; export declare function aborted(x: schemas.ParsePayload, startIndex?: number): boolean; export declare function prefixIssues(path: PropertyKey, issues: errors.$ZodRawIssue[]): errors.$ZodRawIssue[]; export declare function unwrapMessage(message: string | { message: string; } | undefined | null): string | undefined; export declare function finalizeIssue(iss: errors.$ZodRawIssue, ctx: schemas.ParseContextInternal | undefined, config: $ZodConfig): errors.$ZodIssue; export declare function getSizableOrigin(input: any): "set" | "map" | "file" | "unknown"; export declare function getLengthableOrigin(input: any): "array" | "string" | "unknown"; export declare function issue(_iss: string, input: any, inst: any): errors.$ZodRawIssue; export declare function issue(_iss: errors.$ZodRawIssue): errors.$ZodRawIssue; export declare function cleanEnum(obj: Record): EnumValue[]; export declare abstract class Class { constructor(..._args: any[]); }