Add typealiases to make accessing Entity Relationships and Attributes types more convenient

This commit is contained in:
Mathew Polzin
2018-11-26 22:27:10 -08:00
parent b93580c900
commit 3d8d10584b
+3
View File
@@ -40,6 +40,9 @@ public protocol EntityDescription {
public protocol EntityType: PrimaryResource {
associatedtype Description: EntityDescription
associatedtype Identifier: Equatable & Codable
typealias Attributes = Description.Attributes
typealias Relationships = Description.Relationships
}
/// An `Entity` is a single model type that can be