Skip to content

Commit 820da7a

Browse files
Added BFTask generics to header of PFQuery
1 parent c67b8dc commit 820da7a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Parse/PFQuery.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ typedef void (^PFQueryArrayResultBlock)(NSArray PF_GENERIC(PFGenericObject) * PF
558558
559559
@returns The task, that encapsulates the work being done.
560560
*/
561-
- (BFTask *)getObjectInBackgroundWithId:(NSString *)objectId;
561+
- (BFTask PF_GENERIC(PFGenericObject) *)getObjectInBackgroundWithId:(NSString *)objectId;
562562

563563
/*!
564564
@abstract Gets a <PFObject> asynchronously and calls the given block with the result.
@@ -640,7 +640,7 @@ typedef void (^PFQueryArrayResultBlock)(NSArray PF_GENERIC(PFGenericObject) * PF
640640
641641
@returns The task, that encapsulates the work being done.
642642
*/
643-
- (BFTask *)findObjectsInBackground;
643+
- (BFTask PF_GENERIC(NSArray<PFGenericObject> *)*)findObjectsInBackground;
644644

645645
/*!
646646
@abstract Finds objects *asynchronously* and calls the given block with the results.
@@ -691,7 +691,7 @@ typedef void (^PFQueryArrayResultBlock)(NSArray PF_GENERIC(PFGenericObject) * PF
691691
692692
@returns The task, that encapsulates the work being done.
693693
*/
694-
- (BFTask *)getFirstObjectInBackground;
694+
- (BFTask PF_GENERIC(PFGenericObject) *)getFirstObjectInBackground;
695695

696696
/*!
697697
@abstract Gets an object *asynchronously* and calls the given block with the result.
@@ -743,7 +743,7 @@ typedef void (^PFQueryArrayResultBlock)(NSArray PF_GENERIC(PFGenericObject) * PF
743743
744744
@returns The task, that encapsulates the work being done.
745745
*/
746-
- (BFTask *)countObjectsInBackground;
746+
- (BFTask PF_GENERIC(NSNumber *)*)countObjectsInBackground;
747747

748748
/*!
749749
@abstract Counts objects *asynchronously* and calls the given block with the counts.

0 commit comments

Comments
 (0)