zod
Version:
TypeScript-first schema declaration and validation library with static type inference
10 lines (9 loc) • 411 B
TypeScript
import type * as errors from "./errors.js";
export interface $ZodConfig {
/** Custom error map. Overrides `config().localeError`. */
customError?: errors.$ZodErrorMap | undefined;
/** Localized error map. Lowest priority. */
localeError?: errors.$ZodErrorMap | undefined;
}
export declare const globalConfig: $ZodConfig;
export declare function config(config?: Partial<$ZodConfig>): $ZodConfig;