Other Type Aliases
The following type aliases are available globally.
-
Container type alias for includes
Declaration
Swift
public typealias IncludesContainer = [String : IncludesData]
-
Data schema type alias for includes
Declaration
Swift
public typealias IncludesData = [[String : Any]]
-
Type alias which defines a common request pattern tuple
Declaration
Swift
public typealias HTTPRequestHandler = (Data?, URLResponse?, Error?) -> Void
-
Type alias which defines the standard response for an endpoint which returns a list of data
Declaration
Swift
public typealias CollectionRequestHandler<T> = (Result<PaginatedResponse<T>>) -> Void
-
Type alias which defines the standard response for an endpoint which returns a single item
Declaration
Swift
public typealias ObjectRequestHandler<T> = (Result<T>) -> Void