4dd0a25eca
This commit improves four aspects of WRONG_JS_INTEROP_TYPE error reporting: 1) more precise source code ranges are preferred when possible (e.g. value parameter type instead of the entire value parameter, explicit return type instead of the entire declaration, etc.) 2) only relevant parameter and return types of function types are reported as wrong (to prevent confusion with the "function types are supported" part of the error message) 3) WRONG_JS_INTEROP_TYPE errors are now deduplicated in cases where more than one such error was previously reported because of compiler-generated declarations 4) error messages were slightly proofread and contain slightly more information now