Tool to generate typescript definitions for OpenUI5 from the SAP documentation:
- https://openui5.hana.ondemand.com/test-resources/sap/m/designtime/api.json
- https://openui5.hana.ondemand.com/test-resources/sap/ui/core/designtime/api.json
- https://openui5.hana.ondemand.com/test-resources/sap/ui/layout/designtime/api.json
- https://openui5.hana.ondemand.com/test-resources/sap/ui/unified/designtime/api.json
npm install --save https://github.com/maylukas/openui5-typescript-definition-parser.git
var tsDefParser = require("ts-def-parser");
gulp.task("generate-ts-defs", function () {
tsDefParser.parseDefinitions({
outFilePath: "WebContent\\ui5.d.ts"
});
});