Since tsc was emitting errors, I decided to apply the suggestions to mi2.ts to (try to) help understand the intent of the code and make the PR. (I know, lazy PR, and didn't check for other PRs).
Without this patch, I cannot launch the addon for debugging.
Thank you for your contribution; the changes are already part of master so I'm closing that - but the MiNode part is actually only in because of your PR...
Since tsc was emitting errors, I decided to apply the suggestions to mi2.ts to (try to) help understand the intent of the code and make the PR. (I know, lazy PR, and didn't check for other PRs).
Without this patch, I cannot launch the addon for debugging.
Open to comments/suggestions/edits/rejection.
EDIT: Added reason, removed some cruft.