Solved! Go to Solution.
Hi Divya,
Sorry for the delay in getting back to you! Yes, we added it back to the documentation. Unfortunately, we won't be updating the typings for this change - the typings file is so big and it is a lot of work to get updated.
You can instead edit your typings file locally at node_modules/@types/arcgis-js-api/index.d.ts
To add the "edits" event for FeatureLayer:
On line 284, add
export type FeatureLayerEditsEventHandler = (event: FeatureLayerEditsEvent) => void;
This should go after FeatureFormViewModelValueChangeEventHandler and before FeatureLayerLayerviewCreateErrorEventHandler.
Hi Divya,
Sorry for the inconvenience, this was a bug on our side. We are working on getting the "edits" event added back to the documentation and the typings. We are planning on updating the typings next week. I'll let you know once it has been updated.
Thanks!
Anne
Hi Anne,
Thank you for letting me know.
Will be looking forward the Updates.
Kind Regards,
Divya
Hi @Anne Fitz ,
I have just noticed. "edits" event is added back to the documentation. Just wondering if the Typings got updated(As it's still not working for me). If not when can we expect it
Thank you,
Divya
Hi Divya,
Sorry for the delay in getting back to you! Yes, we added it back to the documentation. Unfortunately, we won't be updating the typings for this change - the typings file is so big and it is a lot of work to get updated.
You can instead edit your typings file locally at node_modules/@types/arcgis-js-api/index.d.ts
To add the "edits" event for FeatureLayer:
On line 284, add
export type FeatureLayerEditsEventHandler = (event: FeatureLayerEditsEvent) => void;
This should go after FeatureFormViewModelValueChangeEventHandler and before FeatureLayerLayerviewCreateErrorEventHandler.
Hi Anne,
Thank you so much for your support.
I have added the above details as you mentioned. I have added below line at 11369 after export interface EditingInfo and before export interface FeatureEditResult.
this has removed all the errors.