mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #5951 from mendix/master
added typings for mendixmodelsdk@0.0.1
This commit is contained in:
@@ -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
|
||||
Vendored
+12718
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user