From: Jérôme Benoit Date: Mon, 29 Aug 2022 21:37:33 +0000 (+0200) Subject: Add return type to methods X-Git-Tag: v1.1.69~13 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=f90c1757e0620ff455e9cd0f90245872b9d77b01;p=e-mobility-charging-stations-simulator.git Add return type to methods Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index ccd72ff2..a47bc681 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -748,7 +748,7 @@ export default class ChargingStation { } } - public startAutomaticTransactionGenerator() { + public startAutomaticTransactionGenerator(): void { if (!this.automaticTransactionGenerator) { this.automaticTransactionGenerator = AutomaticTransactionGenerator.getInstance( this.getAutomaticTransactionGeneratorConfigurationFromTemplate(), @@ -767,7 +767,7 @@ export default class ChargingStation { } } - private flushMessageBuffer() { + private flushMessageBuffer(): void { if (this.messageBuffer.size > 0) { this.messageBuffer.forEach((message) => { // TODO: evaluate the need to track performance