export type OutgoingRequest = [MessageType.CALL_MESSAGE, string, RequestCommand, JsonType];
-export type RequestParams = {
+export interface RequestParams {
skipBufferingOnError?: boolean;
triggerMessage?: boolean;
throwError?: boolean;
-};
+}
export const IncomingRequestCommand = {
...OCPP16IncomingRequestCommand,
ResponseCallback,
ErrorCallback,
RequestCommand | IncomingRequestCommand,
- JsonType
+ JsonType,
];
export const MessageTrigger = {
export type IncomingRequestHandler = (
chargingStation: ChargingStation,
- commandPayload: JsonType
+ commandPayload: JsonType,
) => JsonType | Promise<JsonType>;
export const AvailabilityType = {