Any way to get VSCode intellisense to work on jQuery UI components?

1 Answer 179 Views
General Discussions
Christopher
Top achievements
Rank 2
Iron
Christopher asked on 18 Feb 2023, 02:51 AM

Using the latest @progress/kendo-ui, and am able to write things ok, however, the imports of the components don't yield any intellisense information to VSCode, so I can't infer types or functions.

Does anyone know how to import a kendo ui component so that VSCode picks up the type definition?

1 Answer, 1 is accepted

Sort by
0
Accepted
Christopher
Top achievements
Rank 2
Iron
answered on 21 Feb 2023, 10:00 PM

Figured it out. Use the `kendo.ui.*` prefix. Example:


import '@progress/kendo-ui/esm/kendo.notification';

class Something {
    constructor() {

       /**
        * @type {kendo.ui.Notification}
        */
       this.notifier = $('#notifier').getKendoNotification();
       // ^ this.notifier.xxxx now has intellisense.
   }

}

Tags
General Discussions
Asked by
Christopher
Top achievements
Rank 2
Iron
Answers by
Christopher
Top achievements
Rank 2
Iron
Share this question
or