Created
July 18, 2022 15:50
-
-
Save DominikMostek/5414df5cac6fb9e6812447a2eef66b29 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Entity { | |
Collection data(); | |
} | |
interface TraversableEntity { | |
Entity asEntity(); // this | |
TraversableEntity traverseTo(Property prop); | |
} | |
interface SingleRecord { | |
TraversableEntity asTraversable(); // this | |
Identifier id(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment