T
MetroAllValues
Widens a single result to an array when the search was made with all: true.
type MetroAllValues<T extends MetroSearchOptions, U> = T extends { all: true } ? U[] : UWidens a single result to an array when the search was made with all: true.
type MetroAllValues<T extends MetroSearchOptions, U> = T extends { all: true } ? U[] : U