I want to get the value of the fill and outline for a FeatureLayer.
Previously for a FeatureLayer of type polygon you would do
featureLayer.renderer.get("symbol.outline.color") // get outline color
featureLayer.renderer.get("symbol.color") // fill colorAs of 4.28, `Accessor.get` is deprecated in favor of using optional chaining().
If you apply the chaining
featureLayer.renderer?.symbol?.outline?.color // will lose its mind if you have linter on
The current workaround is to cast the featureLayer to any before using chaining.
If you have no-explicit-any in your linter the above goes mental and you back at square one.
What is the proper way to get the values, i must be missing something obivious.