mikuso / ocpp-rpc

A Node.js client & server implementation of the WAMP-like RPC-over-websocket system defined in the OCPP-J protocols.
MIT License
98 stars 29 forks source link

Adding typings file #70

Closed madpilot closed 9 months ago

madpilot commented 9 months ago

Adds an almost complete Typescript typings file.

Almost complete in that I built it using the specifications by hand, and I've used it to build a functioning OCPP charge server, but may have missed a type somewhere. Please take it for a test drive and see if everything looks complete.

mikuso commented 9 months ago

Hi @madpilot

While I appreciate the work you've put into this, it appears that these types only account for requests and responses using OCPP 1.6, and will therefore cause compile-time issues for people who are implementing any of the other OCPP protocols.

For this reason, I'm afraid I cannot merge these changes as-is.