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