type AppendIfNotEmpty<A,T>
Utility type to only add non-empty string types to a string array. @typeparma A - the input string array
Definition
type AppendIfNotEmpty<A extends string[], T extends string> = T extends '' ? A : [
...A,
T
];