@@ -21,6 +21,12 @@ NS_ASSUME_NONNULL_BEGIN
21
21
// / to be overridden.
22
22
@interface RACStream <__covariant ValueType> : NSObject
23
23
24
+ _Pragma (" clang diagnostic push" ) \
25
+ _Pragma (" clang diagnostic ignored \" -Wstrict-prototypes\" " ) \
26
+ typedef id _Nonnull (^RACReduceBlock)();
27
+ typedef ValueType _Nonnull (^RACGenericReduceBlock)();
28
+ _Pragma (" clang diagnostic pop" )
29
+
24
30
// / Returns an empty stream.
25
31
+ (__kindof RACStream<ValueType> *)empty ;
26
32
@@ -170,7 +176,7 @@ typedef RACStream * _Nullable (^RACStreamBindBlock)(ValueType _Nullable value, B
170
176
// / return value must be an object. This argument cannot be nil.
171
177
// /
172
178
// / Returns a new stream of reduced tuple values.
173
- - (__kindof RACStream *)reduceEach : (id _Nullable (^)() )reduceBlock;
179
+ - (__kindof RACStream *)reduceEach : (RACReduceBlock )reduceBlock ;
174
180
175
181
// / Returns a stream consisting of `value`, followed by the values in the
176
182
// / receiver.
@@ -221,7 +227,7 @@ typedef RACStream * _Nullable (^RACStreamBindBlock)(ValueType _Nullable value, B
221
227
// /
222
228
// / Returns a new stream containing the results from each invocation of
223
229
// / `reduceBlock`.
224
- + (__kindof RACStream<ValueType> *)zip : (id <NSFastEnumeration >)streams reduce : (id _Nullable (^)() )reduceBlock;
230
+ + (__kindof RACStream<ValueType> *)zip : (id <NSFastEnumeration >)streams reduce : (RACGenericReduceBlock )reduceBlock ;
225
231
226
232
// / Returns a stream obtained by concatenating `streams` in order.
227
233
+ (__kindof RACStream<ValueType> *)concat : (id <NSFastEnumeration >)streams ;
0 commit comments