]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor: remove unnecessary type casts and improve type safety
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 1 Apr 2026 20:03:57 +0000 (22:03 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 1 Apr 2026 20:03:57 +0000 (22:03 +0200)
commitccb61c1cb0155ee414c99ce2648c7dcf661f605e
tree1aa8586f866715143d0bfa96d6fa99cd166ea5df
parent2fe251965114e2217d578e603f7f18a46e0fa722
refactor: remove unnecessary type casts and improve type safety

- Remove redundant as any cast in __testable__/index.ts
- Rewrite isEmpty() with native type guards (typeof/instanceof)
- Replace parameter mutation with const in WorkerFactory
- Remove unnecessary cast in MessageChannelUtils
src/charging-station/ocpp/2.0/__testable__/index.ts
src/utils/MessageChannelUtils.ts
src/utils/Utils.ts
src/worker/WorkerFactory.ts