Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii authored Jan 9, 2025
1 parent 30cb308 commit 3ebeb27
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,22 +414,22 @@ Here's an example of how to define the `Book` and `Author` entities:
```swift
struct Book: EntityType {
typealias EntityIDRawType = String
typealias TypedIdentifierRawValue = String
var entityID: EntityID {
var typedID: TypedID {
.init(rawID)
}
let rawID: String
var name: String = "initial"
let authorID: Author.EntityID
let authorID: Author.TypedID
}
struct Author: EntityType {
typealias EntityIDRawType = String
typealias TypedIdentifierRawValue = String
var entityID: EntityID {
var typedID: TypedID {
.init(rawID)
}
Expand Down

0 comments on commit 3ebeb27

Please sign in to comment.