import chalk from 'chalk'
-import { logger } from './Logger.js'
-import { isNotEmptyString } from './Utils.js'
import type { ChargingStation } from '../charging-station/index.js'
import type {
EmptyObject,
JsonType,
RequestCommand
} from '../types/index.js'
+import { logger } from './Logger.js'
+import { isNotEmptyString } from './Utils.js'
const defaultErrorParams = {
throwError: true,
consoleOut: false
-}
+} satisfies HandleErrorParams<EmptyObject>
export const handleUncaughtException = (): void => {
process.on('uncaughtException', (error: Error) => {