Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-138667

QML: Apply type annotations to JavaScript functions

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • None
    • None

      As https://doc.qt.io/qt-6/qml-codingconventions.html#javascript-code says, it "is recommended to add type annotations to your function in order to more easily reason about and refactor your application since both parameter and return types are immediately visible from the function signature".

      It also helps the qmlsc to compile more JS code into C++.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            lexcaz Alexei Cazacov
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes