export type TupleToUnion = ArrayType extends readonly unknown[] ? ArrayType[number] : never;