Comment out performance statistics debug code
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / Requests.ts
index aeedae02f3a3325c777ccfc7e8a05b6668ebce4d..1aa015b6c956500e953a0d3bc23caa590f244dbe 100644 (file)
@@ -36,9 +36,13 @@ export const IncomingRequestCommand = {
 
 export type IncomingRequest = [MessageType.CALL_MESSAGE, string, IncomingRequestCommand, JsonType];
 
+export type ResponseCallback = (payload: JsonType, requestPayload: JsonType) => void;
+
+export type ErrorCallback = (error: OCPPError, requestStatistic?: boolean) => void;
+
 export type CachedRequest = [
-  (payload: JsonType, requestPayload: JsonType) => void,
-  (error: OCPPError, requestStatistic?: boolean) => void,
+  ResponseCallback,
+  ErrorCallback,
   RequestCommand | IncomingRequestCommand,
   JsonType
 ];