Closed AlexLIN1974 closed 6 years ago
Hi,
import JSONModel = sap.ui.model.json.JSONModel;
After that you should get intellisense.
If you are using my declarations you will get a model with a generic parameter. There you can specify which type you want to use. For example:
interface IMyInterface {
propertyA: string,
propertyB: string,
}
let mymodel = new sap.ui.model.json.JSONModel
Here is a short example: https://github.com/apazureck/openui5vscodeTypescriptTools/wiki
have a look at this template:
https://github.com/apazureck/UI5TypescriptDeclarations/tree/master/generator
which uses gulp to transpile the typescript files (ctrl+shift+b to start the watch task, after that all in out folder will be supervised and built on save.
Here are some examples from the ui5 walkthrough:
https://github.com/apazureck/openui5TypescriptGenerator/tree/master/Walkthrough
If you like the extension please rate it on the marketplace or contribute (For example extending the wiki with your experience). Happy coding!
Regards
Hi apazureck, First thanks for the great UI5 TS extension.
After install this extension, intelliSense still not work, example below: no intelliSense is showed for oModel, could you share any clue on this?