Fix Json type definition naming
[e-mobility-charging-stations-simulator.git] / src / exception / OCPPError.ts
index e67f3c95f56c38b81a22e1c70a1be191199e610c..bfe64fb43a657049e27ce451787de42933b310f6 100644 (file)
@@ -4,18 +4,18 @@ import { IncomingRequestCommand, RequestCommand } from '../types/ocpp/Requests';
 
 import BaseError from './BaseError';
 import { ErrorType } from '../types/ocpp/ErrorType';
-import { JsonType } from '../types/JsonType';
+import { JsonObject } from '../types/JsonType';
 
 export default class OCPPError extends BaseError {
   code: ErrorType;
   command?: RequestCommand | IncomingRequestCommand;
-  details?: JsonType;
+  details?: JsonObject;
 
   constructor(
     code: ErrorType,
     message: string,
     command?: RequestCommand | IncomingRequestCommand,
-    details?: JsonType
+    details?: JsonObject
   ) {
     super(message);