I have a widget which lets the admin configure a few layers in the settings. My widget will use the layers from the settings to serve up arcgis-feature-form components and query for potential associated data under certain conditions.
The problem is my widget holds references to these layers as UseDataSources but needs an ArcGISQueriableDataSource to query for potential associated data and will need __esri.FeatureLayer for setting up arcgis-feature-form components. Additionally, if I want to have a feature form I probably need to validate if the current user as write access for the Feature Layer, and I need an __esri.FeatuerLayer to check this.