Typealiases
The following typealiases are available globally.
-
A concrete
JSONTransaction
that attempts to generate aJSONDictionary
from JSON data returned by the server.Declaration
Swift
public typealias JSONDictionaryTransaction = JSONTransaction<JSONDictionary, JSONDictionary>
-
A concrete
JSONOptionalTransaction
that accepts an optional JSON payload that—if present—is expected to yield aJSONDictionary
.Declaration
Swift
public typealias JSONOptionalDictionaryTransaction = JSONTransaction<JSONDictionary?, JSONDictionary?>
-
A concrete
JSONTransaction
that attempts to generate aJSONArray
from JSON data returned by the server.Declaration
Swift
public typealias JSONArrayTransaction = JSONTransaction<JSONArray, JSONArray>
-
A concrete
JSONOptionalTransaction
that accepts an optional JSON payload that—if present—is expected to yield aJSONArray
.Declaration
Swift
public typealias JSONOptionalArrayTransaction = JSONTransaction<JSONArray?, JSONArray?>
-
The type of object returned by
JSONSerialization.jsonObject()
to represent a JSON dictionary.Declaration
Swift
public typealias JSONDictionary = [String: Any]
-
The type of object returned by
JSONSerialization.jsonObject()
to represent a JSON array.Declaration
Swift
public typealias JSONArray = [Any]
-
Represents the image type appropriate for the runtime platform. On iOS and tvOS,
PlatformImageType
isUIImage
; on macOS,NSImage
; and on watchOS,WKImage
.Declaration
Swift
public typealias PlatformImageType = NSImage