I want to declare a function type that returns not...
# kotlin-native
a
I want to declare a function type that returns nothing like
var successCallback: (result: String) -> Unit
, However the generated ObjC code is
@property NativeLibsStdlibUnit*(^errorCallback)(NSString*);
, I want to have a declaration at the swift side using something like this:
var successCallback: (_ result: String) -> Void
. Anything I did wrong? The official example are all return
Any
can’t find an example of returning
Unit
at the kotlin side which could be translated to
Void
in Swift side.
s