sap.ui.define seems working like RequireJS define. It should inject the well type. I suggest you that you do the same thing by developping a custom tern function like "requirejs_define" https://github.com/ternjs/tern/blob/master/plugin/requirejs.js#L178
sap.ui.define seems working like RequireJS define. It should inject the well type. I suggest you that you do the same thing by developping a custom tern function like "requirejs_define" https://github.com/ternjs/tern/blob/master/plugin/requirejs.js#L178