@adguard/agtree
Version:
Tool set for working with adblock filter lists
16 lines (15 loc) • 491 B
TypeScript
/**
* @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"]>>;