@@ -22,21 +22,27 @@ #import OF_ASSUME_NONNULL_BEGIN +/** + * @brief A response to a request. + * + * This is a typedef for `OFDictionary *`. + */ +typedef OFDictionary *mtx_response_t; + /** * @brief A block called with the response for an MTXRequest. * * @param response The response to the request, as a dictionary parsed from JSON * @param statusCode The HTTP status code returned for the request * @param exception The first exception that occurred during the request, * or `nil` on success */ -typedef void (^mtx_request_block_t)( - OFDictionary *_Nullable response, int statusCode, - id _Nullable exception); +typedef void (^mtx_request_block_t)(mtx_response_t _Nullable response, + int statusCode, id _Nullable exception); /** * @brief An internal class for performing a request on the Matrix server. */ @interface MTXRequest: OFObject