Type Aliases
The following type aliases are available globally.
-
Custom type for resulting object from
APIEndpoint
built requestDeclaration
Swift
public typealias URLBuilderResult = Result<URLRequest, URLBuilderError>
-
Custom
Result
object for type of networking resultDeclaration
Swift
public typealias NetworkResult = (Result<Data, NetworkError>) -> Void
-
Wrapper for encapsulating Foundation native response values from Data task
Declaration
Swift
public typealias DataTaskResult = (Data?, URLResponse?, Error?) -> Void