Skip to content

Instantly share code, notes, and snippets.

@laugri
Created December 2, 2018 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laugri/2bd3bedee1279f5716a69565fe747bfc to your computer and use it in GitHub Desktop.
Save laugri/2bd3bedee1279f5716a69565fe747bfc to your computer and use it in GitHub Desktop.
DDD example - Repository Interface
// 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