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
Environment (please complete the following information):
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
Environment (please complete the following information):
Additional context Change return Type to "this"