]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor: accept enum types in registry/manager signatures, remove 429 redundant...
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Mar 2026 13:39:32 +0000 (14:39 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Mar 2026 13:40:14 +0000 (14:40 +0100)
commit436d8efe769f00427d41c553150fb9aff18d76be
tree119a7fe78dd41b997f60728c2d07a0f97b8b09fe
parent5a31d2b232a9d002b741c1f61ee8afe72e9bd363
refactor: accept enum types in registry/manager signatures, remove 429 redundant as-string casts

Widen buildRegistryKey, buildCaseInsensitiveCompositeKey, and
VariableMetadata.component to accept OCPP20ComponentName and VariableName
enums directly, eliminating 429 as-string casts across the registry and
variable manager. 8 casts retained on enum comparison lines required by
no-unsafe-enum-comparison lint rule.
src/charging-station/ocpp/2.0/OCPP20VariableManager.ts
src/charging-station/ocpp/2.0/OCPP20VariableRegistry.ts