ApiFactory

typealias ApiFactory<T, R> = (R) -> T