I am currently facing some typescript errors in my project. Would you like to see a sample of the code that is causing the issue? Here is a snippet:
module CoreWeb {
export class Controller implements IController {
public $q;
...
This piece of code showcases a class that extends the controller class, among other classes.
declare var App: ng.IModule;
module CoreWeb {
export class EntityMasterController extends Controller {
private currenciesDataSet;
...
However, I have encountered an error during gulp when I attempted to initialize merchandisingConstants
before calling super as shown above. The error message indicates that a super
call must be the first statement in the constructor when a class has initialized properties or parameter properties. I have tried various approaches to resolve these errors but have been unsuccessful so far. Any suggestions on how I can tackle this issue?