How to use *.ts files for views?

My IDE (PHPstorm) has problem with suggestions in js files, i need ts ending. But how to set *.ts endings for optimus?

Can somebody help me? Thanks

All the needed d.ts files can be found in the codebase directory of the dhx.Suite package

thanks, i understand this, but i am talking about how to use view as .ts file, for example /views/TableLayout.ts not .js bcs IDE has different behaviour if the ending of file is js

well, the dhx.Suite is a JS library, not TS.

this.menu = new dhx.Menu(null, { <= how you can use any suggestions?

or how to use dhtmlx in ts?

add the index.d.ts file to your app with
declare const dhx: typeof import("path_to_the_suite_sources_folder/suite");
and make sure that all the suite d.ts files are located in that folder.