<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Base constructor must all have the Same return type in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/base-constructor-must-all-have-the-same-return/m-p/357677#M33109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing &amp;nbsp;some issues with custom widgets while migrating &amp;nbsp;ARCGISAPI 4.4 to 4.9.&lt;/P&gt;&lt;P&gt;Currently we are using ARCGIS 4.9 and &amp;nbsp;dojo 1.11.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have created custom widgets by extending ‘dijit/_WidgetBase’ module as shown in below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green;"&gt;/// &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #844646;"&gt;reference&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: #b96464;"&gt;path&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #6464b9;"&gt;"../../../typings/_references.ts"&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: black;"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green;"&gt;/// &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #844646;"&gt;amd-dependency&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: #b96464;"&gt;path&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #6464b9;"&gt;"esri/core/tsSupport/declareExtendsHelper"&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: #b96464;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #6464b9;"&gt;"__extends"&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: black;"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green;"&gt;/// &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #844646;"&gt;amd-dependency&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: #b96464;"&gt;path&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #6464b9;"&gt;"esri/core/tsSupport/decorateHelper"&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: #b96464;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #6464b9;"&gt;"__decorate"&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: black;"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; { subclass, declared } &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;from&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: #a31515;"&gt;"esri/core/accessorSupport/decorators"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; Evented = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;require&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #a31515;"&gt;"dojo/Evented"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; _WidgetBase = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;require&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #a31515;"&gt;"dijit/_WidgetBase"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green;"&gt;/**&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green;"&gt;* A view model created to be used with the SmallActionButton widget.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green;"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The sole purpose is to trigger an 'emit', which is not possible from *.TSX files it seems.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green;"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The @vmEvent("smallActionButtonClicked") convenience decorator on the widget then pass the emit on to any 'on' handlers that was created.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green;"&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;@subclass(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #a31515;"&gt;"compass.widgets.SmallActionButtonViewModel"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: blue; background: yellow;"&gt;class&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: #2b91af; background: yellow;"&gt;SmallActionButtonViewModel&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: blue; background: yellow;"&gt;extends&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black; background: yellow;"&gt; declared(_WidgetBase) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;static&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; actionEventName: &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #a31515;"&gt;"smallActionButtonClicked"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: green;"&gt;/**&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Initializes this instance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;constructor&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;() {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;super&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;protected&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; action(): &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;void&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;.emit(SmallActionButtonViewModel.actionEventName, {});&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;export&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; = SmallActionButtonViewModel;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;This code is perfectly running with arcgis 4.4 and dojo 1.9.after changes to 4.9 and dojo 1.11 we are getting error with declared method like &lt;STRONG&gt;“Base constructor must all have the Same return type”. For more details&lt;/STRONG&gt;, please refer the attached document.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;Please assist to resolve this issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Nov 2018 12:20:36 GMT</pubDate>
    <dc:creator>HarishPalaniappan</dc:creator>
    <dc:date>2018-11-23T12:20:36Z</dc:date>
    <item>
      <title>Base constructor must all have the Same return type</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/base-constructor-must-all-have-the-same-return/m-p/357677#M33109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing &amp;nbsp;some issues with custom widgets while migrating &amp;nbsp;ARCGISAPI 4.4 to 4.9.&lt;/P&gt;&lt;P&gt;Currently we are using ARCGIS 4.9 and &amp;nbsp;dojo 1.11.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have created custom widgets by extending ‘dijit/_WidgetBase’ module as shown in below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green;"&gt;/// &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #844646;"&gt;reference&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: #b96464;"&gt;path&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #6464b9;"&gt;"../../../typings/_references.ts"&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: black;"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green;"&gt;/// &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #844646;"&gt;amd-dependency&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: #b96464;"&gt;path&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #6464b9;"&gt;"esri/core/tsSupport/declareExtendsHelper"&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: #b96464;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #6464b9;"&gt;"__extends"&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: black;"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green;"&gt;/// &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #844646;"&gt;amd-dependency&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: #b96464;"&gt;path&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #6464b9;"&gt;"esri/core/tsSupport/decorateHelper"&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: #b96464;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #6464b9;"&gt;"__decorate"&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: black;"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; { subclass, declared } &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;from&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: #a31515;"&gt;"esri/core/accessorSupport/decorators"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; Evented = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;require&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #a31515;"&gt;"dojo/Evented"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; _WidgetBase = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;require&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #a31515;"&gt;"dijit/_WidgetBase"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green;"&gt;/**&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green;"&gt;* A view model created to be used with the SmallActionButton widget.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green;"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The sole purpose is to trigger an 'emit', which is not possible from *.TSX files it seems.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green;"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The @vmEvent("smallActionButtonClicked") convenience decorator on the widget then pass the emit on to any 'on' handlers that was created.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green;"&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;@subclass(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #a31515;"&gt;"compass.widgets.SmallActionButtonViewModel"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: blue; background: yellow;"&gt;class&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: #2b91af; background: yellow;"&gt;SmallActionButtonViewModel&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: blue; background: yellow;"&gt;extends&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black; background: yellow;"&gt; declared(_WidgetBase) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;static&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; actionEventName: &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #a31515;"&gt;"smallActionButtonClicked"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: green;"&gt;/**&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Initializes this instance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;constructor&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;() {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;super&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;protected&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; action(): &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;void&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;.emit(SmallActionButtonViewModel.actionEventName, {});&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;export&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; = SmallActionButtonViewModel;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;This code is perfectly running with arcgis 4.4 and dojo 1.9.after changes to 4.9 and dojo 1.11 we are getting error with declared method like &lt;STRONG&gt;“Base constructor must all have the Same return type”. For more details&lt;/STRONG&gt;, please refer the attached document.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;Please assist to resolve this issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2018 12:20:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/base-constructor-must-all-have-the-same-return/m-p/357677#M33109</guid>
      <dc:creator>HarishPalaniappan</dc:creator>
      <dc:date>2018-11-23T12:20:36Z</dc:date>
    </item>
  </channel>
</rss>

