arnaudleclerc / ng-azure-maps

Angular wrapper around azure maps
MIT License
16 stars 14 forks source link

Bug: Lacking return type #59

Open andreaslarssen opened 2 years ago

andreaslarssen commented 2 years ago
Error: node_modules/azure-maps-drawing-tools/typings/index.d.ts:140:20 - error TS7010: 'edit', which lacks return-type annotation, implicitly has an 'any' return type.

140             public edit(shape: azmaps.Shape)
arnaudleclerc commented 2 years ago

This comes from the azure-maps-drawing-tools on which I don't have any impact. The only solution I can offer you right now is to set noImplicityAny to false on your tsconfig.json.

Could you let me know if this solves your issue ?

andreaslarssen commented 2 years ago

@arnaudleclerc I ended up not using the package because of this, so it's not so easy to try it. It would probably work, but then again I'm not interested in turning off sane config for the entire project.

Where in your code do you call this function? I was interested in checking it out

apw412126 commented 2 years ago

hi, I am new to this library and am having the same issues. The suggested fix to noImplicityAny does not work and I still get the same error. Are there any plans to fix this bug?