Fix Json type definition naming
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / Responses.ts
index baefc637ba389df281b8136323137b6312891451..db44800c4e0c9d44eb3db03eab6d746d14190a34 100644 (file)
@@ -12,17 +12,17 @@ import {
 } from './1.6/Responses';
 
 import { ErrorType } from './ErrorType';
-import { JsonType } from '../JsonType';
+import { JsonObject } from '../JsonType';
 import { MessageType } from './MessageType';
 import { OCPP16MeterValuesResponse } from './1.6/MeterValues';
 
-export type Response = [MessageType.CALL_RESULT_MESSAGE, string, JsonType];
+export type Response = [MessageType.CALL_RESULT_MESSAGE, string, JsonObject];
 
-export type ErrorResponse = [MessageType.CALL_ERROR_MESSAGE, string, ErrorType, string, JsonType];
+export type ErrorResponse = [MessageType.CALL_ERROR_MESSAGE, string, ErrorType, string, JsonObject];
 
 export type ResponseHandler = (
-  payload: JsonType,
-  requestPayload?: JsonType
+  payload: JsonObject,
+  requestPayload?: JsonObject
 ) => void | Promise<void>;
 
 export type BootNotificationResponse = OCPP16BootNotificationResponse;