From 11ca3c7f34134ea0db5cb3733c09b455acd80fd7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 22 Nov 2024 22:09:37 +0100 Subject: [PATCH] refactor: cleanup some OCPP type definitions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/types/ocpp/Responses.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/types/ocpp/Responses.ts b/src/types/ocpp/Responses.ts index ec444fcf..e6b88f00 100644 --- a/src/types/ocpp/Responses.ts +++ b/src/types/ocpp/Responses.ts @@ -27,6 +27,8 @@ export type BootNotificationResponse = | OCPP16BootNotificationResponse | OCPP20BootNotificationResponse +export type CancelReservationResponse = GenericResponse + export type ClearCacheResponse = GenericResponse | OCPP20ClearCacheResponse export type DataTransferResponse = OCPP16DataTransferResponse @@ -93,16 +95,14 @@ export const DataTransferStatus = { // eslint-disable-next-line @typescript-eslint/no-redeclare export type DataTransferStatus = OCPP16DataTransferStatus -export type ReservationStatus = OCPP16ReservationStatus -// eslint-disable-next-line @typescript-eslint/no-redeclare export const ReservationStatus = { ...OCPP16ReservationStatus, } as const - -export type CancelReservationStatus = GenericStatus // eslint-disable-next-line @typescript-eslint/no-redeclare +export type ReservationStatus = OCPP16ReservationStatus + export const CancelReservationStatus = { ...GenericStatus, } as const - -export type CancelReservationResponse = GenericResponse +// eslint-disable-next-line @typescript-eslint/no-redeclare +export type CancelReservationStatus = GenericStatus -- 2.34.1