Skip to content

Commit e35d5ed

Browse files
committed
Added generic type in method definitions.
1 parent 7093274 commit e35d5ed

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

STNetTaskQueue/STHTTPNetTask.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ typedef NS_ENUM(NSUInteger, STHTTPNetTaskResponseType) {
4949
/**
5050
Properties which should be ignored when packing parameters for reqeust.
5151
52-
@return NSArray An array of strings representing the name of properties to be ignored.
52+
@return NSArray<NSString> An array of strings representing the name of properties to be ignored.
5353
*/
54-
- (NSArray *)ignoredProperties;
54+
- (NSArray<NSString *> *)ignoredProperties;
5555

5656
@optional
5757

@@ -97,22 +97,22 @@ typedef NS_ENUM(NSUInteger, STHTTPNetTaskResponseType) {
9797
9898
@return NSDictionary<NSString, NSString> Custom headers, e.g. @{ @"User-Agent": @"STNetTaskQueue Client" }
9999
*/
100-
- (NSDictionary *)headers;
100+
- (NSDictionary<NSString *, NSString *> *)headers;
101101

102102
/**
103103
Additional parameters which will be added as HTTP request parameters.
104104
105105
@return NSDictionary<NSString, id>
106106
*/
107-
- (NSDictionary *)parameters;
107+
- (NSDictionary<NSString *, id> *)parameters;
108108

109109
/**
110110
NSDatas which will be added into multi-part form data body,
111111
requestType should be STHTTPNetTaskRequestFormData if you are going to return datas.
112112
113113
@return NSDictionary<NSString, NSData>
114114
*/
115-
- (NSDictionary *)datas;
115+
- (NSDictionary<NSString *, NSData *> *)datas;
116116

117117
/**
118118
This method will be called if the response object is a dictionary.

STNetTaskQueue/STHTTPNetTaskParametersPacker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
@interface STHTTPNetTaskParametersPacker : NSObject
1212

1313
- (instancetype)initWithNetTask:(STHTTPNetTask *)netTask;
14-
- (NSDictionary *)pack;
14+
- (NSDictionary<NSString *, id> *)pack;
1515

1616
@end

0 commit comments

Comments
 (0)