import { type DeepMergeLeaf } from "https://deno.land/x/deepmergets@v7.1.0/dist/deno/types/merging.ts";
Get the leaf type from many types that can't be merged.
definition: Ts extends readonly [] ? never : Ts extends readonly [infer T] ? T : Ts extends readonly [...infer Rest, infer Tail] ? IsNever<Tail> extends true ? Rest extends ReadonlyArray<unknown> ? DeepMergeLeaf<Rest> : never : Tail : never