From: Jérôme Benoit Date: Tue, 24 Mar 2026 17:01:10 +0000 (+0100) Subject: docs: fix inaccurate @returns in getChargingProfilesLimit X-Git-Tag: ocpp-server@v3.4.0~20 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=edb49d957cab02b9b72f395c670037f5199937c2;p=e-mobility-charging-stations-simulator.git docs: fix inaccurate @returns in getChargingProfilesLimit Return type can be undefined but JSDoc only documented the non-null case. --- diff --git a/src/charging-station/Helpers.ts b/src/charging-station/Helpers.ts index 3056a7bb..885506a0 100644 --- a/src/charging-station/Helpers.ts +++ b/src/charging-station/Helpers.ts @@ -1072,7 +1072,7 @@ const getSingleChargingSchedule = ( * @param chargingStation - The charging station instance * @param connectorId - The connector identifier * @param chargingProfiles - Array of charging profiles - * @returns ChargingProfilesLimit + * @returns Charging profiles limit or undefined if no valid limit found */ const getChargingProfilesLimit = ( chargingStation: ChargingStation,