Azure DevOps deprecated the Windows Server 2019 hosted agent (windows-2019) starting June 1, with full removal by June 30. If your pipeline didn't explicitly specify a newer image, it likely started using Windows Server 2022 or 2025, which ship with a newer TypeScript version installed globally in the build image.
Could you please follow the below steps to resolve this issue:
- You can resolve this by explicitly typing
this.recipients
:recipients: RecipientContactOptionDto[] = [];
Or, cast it inline:_remove(this.recipients as RecipientContactOptionDto[], (r) => ...)
- Alternatively, disable strict inference for that line using a type assertion:
_remove(this.recipients as any, (r) => ...)
Additional References:
Hope this helps!
Please Let me know if you have any queries.