refactor(simulator): switch to named exports
[e-mobility-charging-stations-simulator.git] / src / exception / OCPPError.ts
index 8e7dcc2f62b3b64d9812e3ccbb1941b634973187..8ccc4fbf937000220be6cd026c8dec6f7cd9431d 100644 (file)
@@ -1,11 +1,14 @@
 // Partial Copyright Jerome Benoit. 2021-2023. All Rights Reserved.
 
-import BaseError from './BaseError';
-import type { JsonType } from '../types/JsonType';
-import { ErrorType } from '../types/ocpp/ErrorType';
-import type { IncomingRequestCommand, RequestCommand } from '../types/ocpp/Requests';
+import { BaseError } from './BaseError';
+import {
+  ErrorType,
+  type IncomingRequestCommand,
+  type JsonType,
+  type RequestCommand,
+} from '../types';
 
-export default class OCPPError extends BaseError {
+export class OCPPError extends BaseError {
   code: ErrorType;
   command?: RequestCommand | IncomingRequestCommand;
   details?: JsonType;