Details
-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
6.2.2
Description
A while ago this ticket was opened which asked to investigate TypeScript integration. It was later closed with the justification that the request to investigate had been fulfilled, and actually implementing TypeScript support had not been requested.
I made a search in the thickets and did not find newer requests on this topic. Has the idea of supporting typing in QML made support since then? If not, this ticket requests to follow up on the initial request and implement edit or build time checks of typing in QML documents.
I am not a web developer and I have not been practicing TypeScript. However I know Python with type hints, and it looks like this is a very similar situation to QML. We have in both cases a dynamic language with optional, checkable typing through code annotations and a language server for edit-time checks. I believe type annotations in Python saved me a lot of time fixing silly typos and errors; and the lack of said annotations in QML/JS conversely is a regular source of wasted time and frustration for these same errors. This would be easily avoided by simple static checks.
Another satisfying solution would be to support a typed language in QML documents as an alternative to Javascript.