JointJS在与Element(Joint.shapes.org.NewRect附近的joint.shapes.org.NewRectView)相同的命名空间中寻找ElementView,但是当我用typescript中的模块编写它时,它不起作用。
module joint{
module shapes{
module org{
class NewRect{
...
}
class NewRectView{
...
}
}
}
}
HowI可以修复它并修复默认行为吗?
答案 0 :(得分:0)
HowI can fix it and repair default behavior?
If you do not have a Update Activities set ActivityDate = ....
keyword before your declare
(like the .d.ts does : https://github.com/borisyankov/DefinitelyTyped/blob/master/jointjs/jointjs.d.ts#L9-L11) then you need to module
anything you want to make available to a split definition of a module. So:
export