Missing definitions | Unavailable types
AnilBairi opened this issue · 2 comments
Hi Colleagues,
We are re-writing our inner source project from plain UI5 to UI5 with Typescript.
Currently, we have identified few UI5 type definitions are unavailable or not too specific.
Could you please have a look into below examples and suggest/comment?
AppLifeCycle.getCurrentApplication(): object | undefined
currentApplication method returns
object
orundefined
which is quite generic and this makes it difficult to access further properties/properties of currentApplication like 'applicationType
', 'getInfo
' etc.
UserInfo.getUser()
getUser()
method is unavailable under UserInfo but we could accessgetUser
method and use it in runtime. but we have a missing type problem here. Any idea why getUser method is missing here and any alternative sugession for this?. please note that we are fetching the UserInfo information usingshellContainer
something like ...this.getShellContainer().getServiceAsync('UserInfo')
AppConfiguration.getMetadata()
there is no method called getMetadata in AppConfiguration{}. we are interested in reading the
title
from metadata something like this:
const metadata = AppConfiguration.getMetadata();
const tile = metadata.title
Thanks,
Anil
Closing this now
(Closed because the same issue is in the API docu, which means that the problem is not in the tools in this repo, but in the original Fiori Launchpad sources, which are part of SAPUI5. Reported there.)