mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
13 lines
426 B
Objective-C
13 lines
426 B
Objective-C
@import Foundation;
|
|
|
|
typedef NSObject *MyJSONKeyPath __attribute__((swift_wrapper(struct)));
|
|
|
|
@protocol MyJSONSerializing <NSObject>
|
|
@property (copy, readonly, nullable) NSDictionary<NSString *, MyJSONKeyPath> *JSONKeyPathsByPropertyKey NS_SWIFT_NAME(JSONKeyPathsByPropertyKey);
|
|
@end
|
|
|
|
@interface MyJSONAdapter : NSObject
|
|
- (nonnull instancetype)init;
|
|
- (nonnull __kindof id<MyJSONSerializing>)model NS_REFINED_FOR_SWIFT;
|
|
@end
|