export type Unpacked = T extends (infer U)[] ? U : T;