yagajs / leaflet-ng2

Angular.io integration of Leaflet
https://leaflet-ng2.yagajs.org
ISC License
66 stars 26 forks source link

Property 'addData' in type 'GeoJSONDirective<T>' is not assignable to the same property in base type #447

Open iagsoncarlos opened 1 year ago

iagsoncarlos commented 1 year ago

Describe the bug Property 'addData' in type 'GeoJSONDirective' is not assignable to the same property in base type 'GeoJSON<any, Geometry>'. The Type '(data: Feature<Geometry, T>) => Layer' is not assignable to type '(data: GeoJsonObject) => this'.

Screenshots image

image

Environment (please complete the following information):

Additional context Change return Type to "this"

image