FactoryOrValue

type FactoryOrValue<T> = T | (() => T);