T

MetroAllValues

Widens a single result to an array when the search was made with all: true; a single one is undefined when the cache knows it is missing.

type MetroAllValues<T extends MetroSearchOptions, U> = T extends { all: true } ? U[] : U | undefined