import { type DeepMergeLeaf } from "https://deno.land/x/deepmergets@v7.0.1/dist/node/index.d.cts";
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