From 01434551282e64c9d8d8a0783d889e9a318f4d66 Mon Sep 17 00:00:00 2001 From: tarasoff-jotter <155919115+tarasoff-jotter@users.noreply.github.com> Date: Wed, 7 Aug 2024 02:19:46 +0300 Subject: [PATCH] Update index.ts change type for variable (collection). --- Chapter 02/todo/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chapter 02/todo/src/index.ts b/Chapter 02/todo/src/index.ts index 2fb9c28..bb72dff 100644 --- a/Chapter 02/todo/src/index.ts +++ b/Chapter 02/todo/src/index.ts @@ -7,7 +7,7 @@ let todos: TodoItem[] = [ new TodoItem(1, "Buy Flowers"), new TodoItem(2, "Get Shoes"), new TodoItem(3, "Collect Tickets"), new TodoItem(4, "Call Joe", true)]; -let collection: TodoCollection = new JsonTodoCollection("Adam", todos); +let collection: JsonTodoCollection = new JsonTodoCollection("Adam", todos); let showCompleted = true; function displayTodoList(): void {