import { type InferIntersectOutput } from "https://deno.land/x/valibot@v1.0.0-beta.5/src/index.ts";
Infer intersect output type.
Type Parameters
TOptions extends IntersectOptions | IntersectOptionsAsync
definition: TOptions extends readonly [InferOption<unknown, infer TOutput>, ...infer TRest] ? TRest extends readonly [InferOption<unknown, unknown>, ...InferOption<unknown, unknown>[]] ? TOutput & InferIntersectOutput<TRest> : TOutput : never