From 5692c86c5ba4003efa97d4296981831b2286d93f Mon Sep 17 00:00:00 2001 From: Hiroki <9676341+Hiroki111@users.noreply.github.com> Date: Sat, 17 Apr 2021 15:49:41 +0300 Subject: [PATCH] Update Contacts.ts TypeScript complains that `deleteContact` isn't returning a string value via `inResolve`. --- mailbag/server/src/Contacts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailbag/server/src/Contacts.ts b/mailbag/server/src/Contacts.ts index 15f922f..a708bb6 100644 --- a/mailbag/server/src/Contacts.ts +++ b/mailbag/server/src/Contacts.ts @@ -97,7 +97,7 @@ export class Worker { * @param inID The ID of the contact to delete. * @return A promise that eventually resolves to a string (null for success, or the error message for an error). */ - public deleteContact(inID: string): Promise { + public deleteContact(inID: string): Promise { console.log("Contacts.Worker.deleteContact()", inID);