Despite setting tslint:disable
, I am still receiving tslint warnings.
The specific warnings that are appearing include:
[ts] Argument of type 'string' is not assignable to parameter of type 'RequestInit | undefined'.
(parameter) options: string
[ts] Parameter 'response' implicitly has an 'any' type.
(parameter) response: Response
Displayed below is the code in question.
/* tslint:disable */
// imports
export async function fetchUrl(url: string, options: string) {
return fetch(url, options)
.then(async (response) => response.json())
.then((data: any) => data.data);
}
// other code
/* tslint:enable */
Why are these warnings persisting even after disabling tslint?
What steps can be taken to eliminate the error messages associated with this file?