]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor: remove redundant EmptyObject from CommandResponse union
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 20 Apr 2026 13:46:06 +0000 (15:46 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 20 Apr 2026 13:46:06 +0000 (15:46 +0200)
commit2a14332c95db3d4b81d4f9fb453a876f59a4ff33
tree5c807e13283b84bb0f031c34b91149c9357a5233
parent8a15c3c5d6591b7e40fea04352126e30d7407e55
refactor: remove redundant EmptyObject from CommandResponse union

EmptyObject (Record<string, never>) is structurally assignable to every
object type in the union. Empty responses are handled at runtime via
isEmpty() checks before reaching type-narrowing logic.
src/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.ts