import { type InferIntersectInput } from "https://deno.land/x/valibot@v1.0.0-beta.2-to-json-schema/src/schemas/intersect/index.ts";
Infer intersect input type.
Type Parameters
TOptions extends IntersectOptions | IntersectOptionsAsync
definition: TOptions extends readonly [InferOption<infer TInput, unknown>, ...infer TRest] ? TRest extends readonly [InferOption<unknown, unknown>, ...InferOption<unknown, unknown>[]] ? TInput & InferIntersectInput<TRest> : TInput : never