Created
December 2, 2018 17:16
-
-
Save laugri/2bd3bedee1279f5716a69565fe747bfc to your computer and use it in GitHub Desktop.
DDD example - Repository Interface
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
// Repository interface example | |
interface ShoppingCartRepository { | |
findById(shoppingCartId: ShoppingCartId): Promise<ShoppingCart>; | |
store(shoppingCart: ShoppingCart): Promise<void>; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment