In version 4.6 of the JSAPI, the FeatureLayer.typeIdField property throws an exception when set, including when it's passed to the constructor of FeatureLayer.
FeatureLayer.typeIdField is not marked as read-only in the API documentation and the FeatureLayer.types property can still be manipulated, which leads me to believe that it's bug. So my question is:
Is this a bug or was the change intentional? If it was intentional, then why can FeatureLayer.types still be set?