I’m trying to create declaration file for EmberJS.
I try to just create enough declaration to create the starter-kit application.
var App = Em.Application.create();
App.MyView = Em.View.extend({
mouseDown: function() {
window.alert("hello world!");
}
});
I try several things like create module call Em and create interfaces inside of it but I didn’t manage to get it right.
Based on your example, this adds typing around the items you are using. I have made assumptions, such as
Application.create()returns anApplication– you can adjust the example as you require.