Skip to content

Commit

Permalink
feat: create Display protocol to show messages
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorverasm committed Jan 25, 2021
1 parent a6804d4 commit 9d943a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/presentation/protocols/display.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export type DisplayMessage = {
title: string;
description: string;
};

export interface Display {
show(message: DisplayMessage): void;
}

0 comments on commit 9d943a7

Please sign in to comment.