Create custom widget using "esri/core/accessorSupport/decorators" esri module of version 4.9 and "dijit/_WidgetBase" version 1.11 of dijit module.

11-27-2018 05:02 AM
New Contributor III

i am facing issue with below mentioned code:
/// <amd-dependency path="esri/core/tsSupport/declareExtendsHelper" name="__extends" />
/// <amd-dependency path="esri/core/tsSupport/decorateHelper" name="__decorate" />

import { subclass, declared} from "esri/core/accessorSupport/decorators";

import Evented = require("dojo/Evented");
import _WidgetBase = require("dijit/_WidgetBase");

import ToggleState = require("./ToggleState");

class SmallToggleButtonViewModel extends declared(_WidgetBase, Evented) {

//Getting error Base constructor must all have the Same return type


Can any one help me?

thanks in advance.

Tags (3)
0 Kudos
0 Replies