This is the code produced by KmmResult for me. Isn't it odd that these cases have _Nullable?
- (T _Nullable)getOrThrow __attribute__((swift_name("getOrThrow()")));
- (KmmResult<T> *)onSuccessBlock:(id _Nullable (^)(T _Nullable))block __attribute__((swift_name("onSuccess(block:)")));
__attribute__((objc_subclassing_restricted))
@interface KmmResult<__covariant T> : Base
@property (class, readonly, getter=companion) KmmResultCompanion *companion __attribute__((swift_name("companion")));
@property (readonly) BOOL isFailure __attribute__((swift_name("isFailure")));
@property (readonly) BOOL isSuccess __attribute__((swift_name("isSuccess")));
- (instancetype)initWithValue:(T _Nullable)value __attribute__((swift_name("init(value:)"))) __attribute__((objc_designated_initializer));
- (instancetype)initWithFailure:(AppBridgeKotlinThrowable *)failure __attribute__((swift_name("init(failure:)"))) __attribute__((objc_designated_initializer));
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
- (AppBridgeKotlinThrowable * _Nullable)exceptionOrNull __attribute__((swift_name("exceptionOrNull()")));
- (id _Nullable)foldOnSuccess:(id _Nullable (^)(T _Nullable))onSuccess onFailure:(id _Nullable (^)(AppBridgeKotlinThrowable *))onFailure __attribute__((swift_name("fold(onSuccess:onFailure:)")));
- (T _Nullable)getOrElseOnFailure:(T _Nullable (^)(AppBridgeKotlinThrowable *))onFailure __attribute__((swift_name("getOrElse(onFailure:)")));
- (T _Nullable)getOrNull __attribute__((swift_name("getOrNull()")));
- (T _Nullable)getOrThrow __attribute__((swift_name("getOrThrow()")));
- (NSUInteger)hash __attribute__((swift_name("hash()")));
- (KmmResult<id> *)mapBlock:(id _Nullable (^)(T _Nullable))block __attribute__((swift_name("map(block:)")));
- (KmmResult<id> *)mapCatchingBlock:(id _Nullable (^)(T _Nullable))block __attribute__((swift_name("mapCatching(block:)")));
- (KmmResult<T> *)mapFailureBlock:(AppBridgeKotlinThrowable *(^)(AppBridgeKotlinThrowable *))block __attribute__((swift_name("mapFailure(block:)")));
- (KmmResult<T> *)onFailureBlock:(id _Nullable (^)(AppBridgeKotlinThrowable *))block __attribute__((swift_name("onFailure(block:)")));
- (KmmResult<T> *)onSuccessBlock:(id _Nullable (^)(T _Nullable))block __attribute__((swift_name("onSuccess(block:)")));
- (NSString *)description __attribute__((swift_name("description()")));
- (KmmResult<id> *)transformBlock:(KmmResult<id> *(^)(T _Nullable))block __attribute__((swift_name("transform(block:)")));
- (id _Nullable)unwrap __attribute__((swift_name("unwrap()")));
@end
This is the code produced by
KmmResultfor me. Isn't it odd that these cases have_Nullable?- (T _Nullable)getOrThrow __attribute__((swift_name("getOrThrow()")));- (KmmResult<T> *)onSuccessBlock:(id _Nullable (^)(T _Nullable))block __attribute__((swift_name("onSuccess(block:)")));