To address the absence of available types for a library, I created the file omnivore.d.ts
in TypeScript. Within this file, I added the following line:
declare module '@mapbox/leaflet-omnivore'
Upon running vue-cli-service lint
in my project, an error is raised specifically on that line:
Error: Parsing error: Unexpected token, expected "{"
> 1 | declare module '@mapbox/leaflet-omnivore'
| ^
Although the webpage functions properly without any issues, this lint error causes a failure in my continuous integration process. Despite searching and finding suggestions to add an object after the string, I remain unsure about what modification is needed in this scenario.