Skip to content

Commit 3ebeb27

Browse files
authored
Update README.md
1 parent 30cb308 commit 3ebeb27

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -414,22 +414,22 @@ Here's an example of how to define the `Book` and `Author` entities:
414414
```swift
415415
struct Book: EntityType {
416416
417-
typealias EntityIDRawType = String
417+
typealias TypedIdentifierRawValue = String
418418
419-
var entityID: EntityID {
419+
var typedID: TypedID {
420420
.init(rawID)
421421
}
422422
423423
let rawID: String
424424
var name: String = "initial"
425-
let authorID: Author.EntityID
425+
let authorID: Author.TypedID
426426
}
427427
428428
struct Author: EntityType {
429429
430-
typealias EntityIDRawType = String
430+
typealias TypedIdentifierRawValue = String
431431
432-
var entityID: EntityID {
432+
var typedID: TypedID {
433433
.init(rawID)
434434
}
435435

0 commit comments

Comments
 (0)