This PR adds type documentation to the util/xml-helpers module to more clearly document the interface of the module.
I already added this kind of type documentation before (to munge-util in #127). The types' correctness can be checked using TypeScript tooling.
Description
use ES6 method syntax (because VSCode generated a nicer starting point that way)
document & check function signature types
satisfy TS type checks: in a few cases our code was not 100% in line with the elementtree types. However both the old and new version should behave identically with regards to our use-cases
Motivation and Context
This PR adds type documentation to the
util/xml-helpers
module to more clearly document the interface of the module.I already added this kind of type documentation before (to
munge-util
in #127). The types' correctness can be checked using TypeScript tooling.Description
elementtree
types. However both the old and new version should behave identically with regards to our use-casesTesting
Checked type correctness of module using VSCode