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); });