Hi - we are trying to use the Editor widget (JS API 4.17) in our web app however it seems it automatically enables editing for all editable FeatureLayers and GeoJSON Layers. We want to disable add/edit for all the GeoJSON Layers - according to the documentation we could do that by providing `layerInfos` with the right flags - however, `layerInfos.layer` seems to only allow `FeatureLayer` (in TS typings and as described in the documentation) but not other types.
Force casting GeoJSONLayer type to "FeatureLayer" seems to work but it definitely isn't ideal - I'm wondering if this is an issue with the documentation & TS typings, or if there is a better way to do this?
Thanks!