javascript type annotations do not work in code-behind .js files
Unsolved
QML and Qt Quick
-
[https://doc.qt.io/qt-6/qtqml-javascript-hostenvironment.html](link url) says "Function declarations can, and should, contain type annotations" but they only seem to be accepted in in-line javascript in .qml files.
If used in an imported .js file you get errors saying
"Type annotations are not permitted in function parameters in JavaScript functions"