In a ui5 typescript app, try to import the sap.ui.core.URI (results in import { URI } from "sap/ui/core/library";)
The type of this import would be just a string (export type URI = string;)
What is the expected result?
It's actually possible to validate an input using this type, since it's created from the DataType, so I would expect the DataType function to be available in the TS.
OpenUI5 version: latest
Browser/version (+device/version): all
URL (minimal example if possible): https://ui5.sap.com/#/api/sap.ui.core.URI
Steps to reproduce the problem:
sap.ui.core.URI
(results inimport { URI } from "sap/ui/core/library";
)string
(export type URI = string;
)What is the expected result? It's actually possible to validate an input using this type, since it's created from the DataType, so I would expect the
DataType
function to be available in the TS.https://github.com/SAP/openui5/blob/master/src/sap.ui.core/src/sap/ui/core/library.js#L2104
What happens instead? The imported type can only be handled as a
string
.Any other information? (attach screenshot if possible) I was not sure in which repo I should create this issue. Please, correct me if I'm wrong.