Skip to content

Commit 00240ee

Browse files
committedJan 31, 2025
use NS_ASSUME_NONNULL_BEGIN/END instead
1 parent f3f0df5 commit 00240ee

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed
 

‎packages/default-storage/ios/RNCAsyncStorage.h

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
*
2828
* Keys and values must always be strings or an error is returned.
2929
*/
30+
31+
NS_ASSUME_NONNULL_BEGIN
32+
3033
@interface RNCAsyncStorage : NSObject <
3134
#ifdef RCT_NEW_ARCH_ENABLED
3235
NativeAsyncStorageModuleSpec
@@ -50,13 +53,15 @@
5053

5154
// Grab data from the cache. ResponseBlock result array will have an error at position 0, and an
5255
// array of arrays at position 1.
53-
- (void)multiGet:(NSArray<NSString *> *_Nullable)keys callback:(RCTResponseSenderBlock _Nullable )callback;
56+
- (void)multiGet:(NSArray<NSString *> *)keys callback:(RCTResponseSenderBlock)callback;
5457

5558
// Add multiple key value pairs to the cache.
56-
- (void)multiSet:(NSArray<NSArray<NSString *> *> *_Nullable)kvPairs
57-
callback:(RCTResponseSenderBlock _Nullable )callback;
59+
- (void)multiSet:(NSArray<NSArray<NSString *> *> *)kvPairs
60+
callback:(RCTResponseSenderBlock)callback;
5861

5962
// Interface for natively fetching all the keys from the storage data.
60-
- (void)getAllKeys:(RCTResponseSenderBlock _Nullable )callback;
63+
- (void)getAllKeys:(RCTResponseSenderBlock )callback;
6164

6265
@end
66+
67+
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)