Strong type protocols payloads
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / Responses.ts
index 77497074221dd2a496e9e2b93ad26bc7f0d5dc5c..21ddd903aa142cd39f11077879d2352ed2fc3233 100644 (file)
@@ -1,5 +1,9 @@
 import { OCPP16AvailabilityStatus, OCPP16BootNotificationResponse, OCPP16ChargingProfileStatus, OCPP16ClearChargingProfileStatus, OCPP16ConfigurationStatus, OCPP16RegistrationStatus, OCPP16TriggerMessageStatus, OCPP16UnlockStatus } from './1.6/Responses';
 
+import { JsonType } from '../JsonType';
+
+export type ResponseHandler = (payload: JsonType | string, requestPayload?: JsonType) => void | Promise<void>;
+
 export type BootNotificationResponse = OCPP16BootNotificationResponse;
 
 export enum DefaultStatus {