Hi,
In 4.9 extending a BaseLayerView2D was simple as in the following:
<SPAN class="keyword token">import</SPAN> BaseLayerView2D <SPAN class="operator token">=</SPAN> <SPAN class="token function">require</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"esri/views/2d/layers/BaseLayerView2D"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">class</SPAN> <SPAN class="token class-name">ExtendedLayerView</SPAN> <SPAN class="keyword token">extends</SPAN> <SPAN class="token class-name">BaseLayerView2D</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="comment token">// implementation...</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>In 4.10 the typings have changed so that BaseLayerView2D is an interface instead of a class, therefore extends won't work.
Have only worked out a very hacky way to call createSubclass to make it work...but lose all static typing with the class then as well.
Any ideas how to correctly extend BaseLayerView2D using v4.10 typings?
Thanks!