From 535063a4dc1a16ff90419549494e7752f2e63bcb Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Thu, 12 Oct 2023 15:20:48 -0700 Subject: [PATCH] fix(daemon): Loosen type for panic message --- packages/daemon/src/mail.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/daemon/src/mail.js b/packages/daemon/src/mail.js index 33746e09e7..8e88bbfbc3 100644 --- a/packages/daemon/src/mail.js +++ b/packages/daemon/src/mail.js @@ -102,7 +102,9 @@ export const makeMailboxMaker = ({ } return undefined; } - throw new Error(`panic: Unknown message type ${message.type}`); + throw new Error( + `panic: Unknown message type ${/** @type {any} */ (message).type}`, + ); }; const listMessages = async () =>