From: Jérôme Benoit Date: Tue, 10 Jan 2023 23:19:38 +0000 (+0100) Subject: Convert some type definitions to type syntax X-Git-Tag: v1.1.90~26 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6415403ce9894b9a1d7d5d5f698483e58463370f;p=e-mobility-charging-stations-simulator.git Convert some type definitions to type syntax Signed-off-by: Jérôme Benoit --- diff --git a/src/types/Statistics.ts b/src/types/Statistics.ts index f5a13ebb..fb9ededb 100644 --- a/src/types/Statistics.ts +++ b/src/types/Statistics.ts @@ -23,11 +23,11 @@ export type StatisticsData = { stdDevTimeMeasurement: number; }; -export type Statistics = WorkerData & { +export type Statistics = { id: string; name: string; uri: string; createdAt: Date; updatedAt?: Date; statisticsData: Map>; -}; +} & WorkerData; diff --git a/src/types/ocpp/2.0/Requests.ts b/src/types/ocpp/2.0/Requests.ts index 1b30a976..407fdfe4 100644 --- a/src/types/ocpp/2.0/Requests.ts +++ b/src/types/ocpp/2.0/Requests.ts @@ -60,4 +60,4 @@ export type OCPP20StatusNotificationRequest = { connectorStatus: OCPP20ConnectorStatusEnumType; evseId: number; connectorId: number; -}; +} & JsonObject; diff --git a/src/types/ocpp/Configuration.ts b/src/types/ocpp/Configuration.ts index aa50c752..6289a77d 100644 --- a/src/types/ocpp/Configuration.ts +++ b/src/types/ocpp/Configuration.ts @@ -31,8 +31,8 @@ export enum ConnectorPhaseRotation { TSR = 'TSR', } -export interface OCPPConfigurationKey extends JsonObject { +export type OCPPConfigurationKey = { key: string | StandardParametersKey; readonly: boolean; value?: string; -} +} & JsonObject;