UNPKG

@adguard/agtree

Version:
16 lines (15 loc) 491 B
/** * @file Zod camelCase utility. */ import type zod from 'zod'; import { type CamelCasedPropertiesDeep } from 'type-fest'; /** * Transforms Zod schema to camelCase. * * @param zod Zod schema. * * @returns Zod schema with camelCase properties. * * @see {@link https://github.com/colinhacks/zod/issues/486#issuecomment-1501097361} */ export declare const zodToCamelCase: <T extends zod.ZodTypeAny>(zod: T) => zod.ZodEffects<zod.ZodTypeAny, CamelCasedPropertiesDeep<T["_output"]>>;