Merge pull request #5951 from mendix/master

added typings for mendixmodelsdk@0.0.1
This commit is contained in:
Masahiro Wakame
2015-10-06 03:12:36 +09:00
3 changed files with 12746 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
/// <reference path="./mendixmodelsdk.d.ts"/>
import {domainmodels, IModel, ModelSdkClient} from "mendixmodelsdk";
// This doesn't do anything useful, just for testing typings...
const client: ModelSdkClient = new ModelSdkClient({
credentials: {
username: "username",
apikey: "apikey"
}
});
client.createWorkingCopy({
name: "workingCopy",
template: "test.mpk"
}, (model:IModel) => {
client.openWorkingCopy(model.id, (model:IModel) => {
var domainModel:domainmodels.IDomainModel = model.allDomainModels()[0];
domainModel.load((d:domainmodels.DomainModel) => {});
domainModel = model.root.modules[0].domainModel;
var entity:domainmodels.IEntity = model.findEntityByQualifiedName("x.y");
model.exportMpk("test.mpk", () => {}, (err) => {})
}, (err) => {});
}, (err) => {});
@@ -0,0 +1 @@
-m commonjs -t es5
+12718
View File
File diff suppressed because it is too large Load Diff