I have recently integrated TypeScript into my SAPUI5 project and am encountering issues with the ESLint messages related to types.
Consider this simple example:
In this snippet of code, I am getting an error message saying "Unsafe return of an any typed value," but I cannot seem to identify the reason behind it. All elements in this function are properly typed. The documentation for UIComponent.getRouterFor from the package @sapui5/ts-types-esm provides the following description:
Could someone please help me understand what mistake I may be making? Are the types correctly defined?