From: Jérôme Benoit Date: Wed, 4 Jan 2023 22:15:23 +0000 (+0100) Subject: Simplify statistics map typing at init X-Git-Tag: v1.1.89~31 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1e4b0e4b9a4d686b484163c7df83d7a09d194de7;p=e-mobility-charging-stations-simulator.git Simplify statistics map typing at init Signed-off-by: Jérôme Benoit --- diff --git a/src/performance/PerformanceStatistics.ts b/src/performance/PerformanceStatistics.ts index 6383887a..f3c4e5e6 100644 --- a/src/performance/PerformanceStatistics.ts +++ b/src/performance/PerformanceStatistics.ts @@ -7,7 +7,7 @@ import { parentPort } from 'worker_threads'; import { MessageChannelUtils } from '../charging-station/MessageChannelUtils'; import { MessageType } from '../types/ocpp/MessageType'; import type { IncomingRequestCommand, RequestCommand } from '../types/ocpp/Requests'; -import type { Statistics, StatisticsData, TimeSeries } from '../types/Statistics'; +import type { Statistics, TimeSeries } from '../types/Statistics'; import { CircularArray, DEFAULT_CIRCULAR_ARRAY_SIZE } from '../utils/CircularArray'; import Configuration from '../utils/Configuration'; import logger from '../utils/Logger'; @@ -34,7 +34,7 @@ export default class PerformanceStatistics { name: this.objName ?? 'Object name not specified', uri: uri.toString(), createdAt: new Date(), - statisticsData: new Map>(), + statisticsData: new Map(), }; }