Unable to compile typescript file to Javascript -


I am trying to compile this type of file in JavaScript but I am getting an error:

File:

  / ** * view * / /// & lt; Reference path = "../ typescriptDefinitions / main.d.ts" /> Class XView Extended Backbone View {// Template to define HTML view template: (data: any) = & gt; String = null; TemplateLocation: string; Producer (options, survey: backbone compilation, div: jquery) {super (option); this. $ El = div; This.collection = survey; } Render () {var self = this; If (this.template == zero) {Required (["text!" + This.template location], function (html) {this.template = _.template (html); self.load ();}); } And {this.load (); } This.delegateEvents (); Back it; } Weight () {}; // This is an error that is pointing to error   

}

Error:

  views.ts (40 , 13): Error TS1008: Unexpected token; Expecting 'constructor, function, accessor or variable'   

All other typewriters in my project are compiling properly. In this file, I am trying to create an abstract class which That's difficult because there is no abstract class in the cursus, I want to be able to get the other sections of this class - so I've created the load () function which will extend it They will be overridden in sections. is it fair?

  load () {}; // This is the line that is pointing to error   

Try removing a semicolon here

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -