We have an Angular 11 application with strict mode turned on. It has these values in the compilerOptions
configurtation in tsconfig.json
:
"strict": true,
"noImplicitReturns": true,
Now we want to use an external library (leaflet geoman). The library is imported like this:
import * as L from 'leaflet';
import '@geoman-io/leaflet-geoman-free';
Unfortunately it includes implicit any
types as well as implicit any
return types:
Parameter 'options' implicitly has an 'any' type.
'setLang', which lacks return-type annotation, implicitly has an 'any' return type
How can I tell the compiler to ignore these errors from the module during compilation but keep strict
mode turned on for the rest of the project?