@vercel/sdk
Version:
<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>
7 lines • 390 B
TypeScript
import * as z from "zod/v3";
/**
* Smart union parser that tries all schemas and returns the best match
* based on the number of populated fields.
*/
export declare function smartUnion<Options extends readonly [z.ZodType, z.ZodType, ...z.ZodType[]]>(options: Options): z.ZodType<z.output<Options[number]>, z.ZodTypeDef, z.input<Options[number]>>;
//# sourceMappingURL=smartUnion.d.ts.map