Skip to content

Commit 6d1b9f2

Browse files
committed
chapter 4 review
1 parent 02ed22e commit 6d1b9f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/04-stack/01-using-stack-class.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
import Stack from './stack';
44

55
enum Action {
6-
TYPE = 'typing'
6+
TYPE = 'typing',
7+
// Add more actions like DELETE, FORMAT, etc.
78
}
89

910
interface EditorAction {
1011
action: Action;
11-
text: string;
12+
text?: string; // Optional text for typing actions
1213
}
1314

1415
const stack = new Stack<EditorAction>();

0 commit comments

Comments
 (0)