]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor: type buildTransactionEvent with OCPP20TransactionEventOptions
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Mar 2026 14:30:15 +0000 (15:30 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Mar 2026 14:30:15 +0000 (15:30 +0100)
commitb6de95e291e521391ed4f362c8526362f34e5e47
tree4ba71839e8efd3534a4d44dec91d689eb97e86a6
parent436d8efe769f00427d41c553150fb9aff18d76be
refactor: type buildTransactionEvent with OCPP20TransactionEventOptions

Replace the untyped Record<string, unknown> cast in buildTransactionEvent
with the proper OCPP20TransactionEventOptions parameter type. Add build
hint fields to the options interface. Remove 64 stale as-unknown-as casts
from transaction event tests.
src/charging-station/ocpp/2.0/OCPP20RequestService.ts
src/charging-station/ocpp/2.0/OCPP20ServiceUtils.ts
src/types/ocpp/2.0/Transaction.ts
tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent.test.ts