import { type IntersectOutput } from "https://deno.land/x/valibot@v0.28.1/src/schemas/intersect/types.ts";
Intersect output inference type.
Type Parameters
TIntersectOptions extends IntersectOptions | IntersectOptionsAsync
definition: TIntersectOptions extends [BaseSchema<any, infer TOutput1> | BaseSchemaAsync<any, infer TOutput1>, ...infer TRest] ? TRest extends IntersectOptions ? TOutput1 & IntersectOutput<TRest> : TRest extends [BaseSchema<any, infer TOutput2> | BaseSchemaAsync<any, infer TOutput2>] ? TOutput1 & TOutput2 : never : never