Skip to content

Instantly share code, notes, and snippets.

@laugri
Created December 2, 2018 17:16
Show Gist options
  • 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