import type { IsUnion } from "hry-types/src/Any/IsUnion"; import type { Last } from "hry-types/src/Union/Last"; type _UnionToComma = [U] extends [never] ? Prev : _UnionToComma>, `${Last & string}、${Prev}`>; export type UnionToComma = IsUnion extends true ? _UnionToComma>, Last & string> : U;