We were required to add lint rules to our Angular app.
The specific rule that’s causing an issue is the no-explicit-any eslint rule.
.eslintrc.json
"@typescript-eslint/no-explicit-any": "error",
we are importing google maps on the app, but describing it as any
would cause the linter to fail. I can’t seem to find the correct data type to use here.
declare const google: any;
I am also having issues with the other types, but I guess I can start with this for now. thanks!
any suggestions?
tried setting it to unknown
but was having issues when accessing the map property on the google object
Jue is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.