BiancoRoyal / node-red-contrib-iiot-opcua

deprecated - very new developed by PLUS for Node-RED - https://plus4nodered.com
https://www.npmjs.com/package/node-red-contrib-iiot-opcua
BSD 3-Clause "New" or "Revised" License
34 stars 8 forks source link

Remove references to the TODO type #138

Closed ghost closed 1 year ago

ghost commented 2 years ago

Description

The Todo type is intended as a temporary placeholder, but is very widely used across files, which helped get the TypeScript upgrade running quickly, but because Todo is simply an alias of the default any type, a lot of type information is lost by using it, which decreases the advantages of TypeScript over JavaScript. The Todo type should be completely removed and replaced by types that properly describe the objects that are assigned that type.

This Issue serves as an overview of the task's overall status.

Good first issue

This issue has been marked as a "Good first issue", since removing the Todo type has a low risk of causing any breaking changes, while offering a great opportunity to navigate the code and become acquainted with the functionality and structure of a Node-RED node, node-opcua, and this project.

Successful removal

The Todo type is successfully removed when the import can be removed from a file, the build runs successfully via gulp build and the test completion remains the same (or better), run via npm run summary.

Contibuting

To contribute toward this issue, please first create a separate issue including details of which files you are removing the Todo type from.

Remaining Files:

This is a list of all files that include use of the Todo type. A checked box implies that the Todo type has been removed.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 45 days with no activity. It will be closed in 5 days, but can be saved by removing the stale label or commenting.

biancode commented 2 years ago

We should use the node-opcua types here to minimize the own definitions.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity. It will be closed in 15 days, but can be saved by removing the stale label or commenting.