From f59e0c355ddde7618a2a9d45c0162c8d700e2073 Mon Sep 17 00:00:00 2001 From: Haruyaki <52639021+HarunamiYaki@users.noreply.github.com> Date: Fri, 29 Sep 2023 13:06:41 +0700 Subject: [PATCH] chore: Add error interface --- src/structures/listener.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/structures/listener.ts b/src/structures/listener.ts index 772e564..0fbc821 100644 --- a/src/structures/listener.ts +++ b/src/structures/listener.ts @@ -1,11 +1,11 @@ -process.on('unhandledRejection', (error) => { +process.on('unhandledRejection', (error: Error): void => { console.error('Unhandled Promise Rejection:', error); }); -process.on('uncaughtException', (error) => { +process.on('uncaughtException', (error: Error): void => { console.error('uncaughtException:', error); }); -process.on('uncaughtExceptionMonitor', (error) => { +process.on('uncaughtExceptionMonitor', (error: Error): void => { console.error('uncaughtExceptionMonitor:', error); });