type NonEmptyString = T extends '' ? never : T; type NonEmptyArray = [T, ...T[]]; export type { NonEmptyArray, NonEmptyString };