Skip to content

Commit c6cb850

Browse files
committed
Merge pull request #294 from ParsePlatform/nlutsenko.genericUnbreak
Update all NSNull generic types to use NSNumber instead.
2 parents 6d143c8 + b208a59 commit c6cb850

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Parse/PFCloud.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ PF_ASSUME_NONNULL_BEGIN
5454
5555
@returns The task, that encapsulates the work being done.
5656
*/
57-
+ (BFTask *)callFunctionInBackground:(NSString *)function
58-
withParameters:(PF_NULLABLE NSDictionary *)parameters;
57+
+ (BFTask PF_GENERIC(id) *)callFunctionInBackground:(NSString *)function
58+
withParameters:(PF_NULLABLE NSDictionary *)parameters;
5959

6060
/*!
6161
@abstract Calls the given cloud function *asynchronously* with the parameters provided

Parse/PFObject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ NS_REQUIRES_PROPERTY_DEFINITIONS
824824
825825
@returns The task that encapsulates the work being done.
826826
*/
827-
- (BFTask PF_GENERIC(NSNull *)*)deleteEventually;
827+
- (BFTask PF_GENERIC(NSNumber *)*)deleteEventually;
828828

829829
///--------------------------------------
830830
/// @name Dirtiness

Parse/PFUser.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,10 +335,10 @@ typedef void(^PFUserLogoutResultBlock)(NSError *PF_NULLABLE_S error);
335335
and you application's 'Require Revocable Session' setting is turned off on `http://parse.com` app settings.
336336
After returned `BFTask` completes - <PFSession> class and APIs will be available for use.
337337
338-
@returns An instance of `BFTask` that is completed when
339-
revocable sessions are enabled and currentUser token is migrated.
338+
@returns An instance of `BFTask` that is completed when revocable
339+
sessions are enabled and currentUser token is migrated.
340340
*/
341-
+ (BFTask PF_GENERIC(NSNull *)*)enableRevocableSessionInBackground;
341+
+ (BFTask *)enableRevocableSessionInBackground;
342342

343343
/*!
344344
@abstract Enables revocable sessions and upgrades the currentUser session token to use revocable session if needed.
@@ -369,7 +369,7 @@ typedef void(^PFUserLogoutResultBlock)(NSError *PF_NULLABLE_S error);
369369
370370
@returns An instance of `BFTask`, that is resolved with `nil` result when logging out completes.
371371
*/
372-
+ (BFTask PF_GENERIC(NSNull *)*)logOutInBackground;
372+
+ (BFTask *)logOutInBackground;
373373

374374
/*!
375375
@abstract *Asynchronously* logs out the currently logged in user.

0 commit comments

Comments
 (0)