@@ -30,7 +30,7 @@ export class SplitPolygonMode extends GeoJsonEditMode {
30
30
// if first point is clicked, then find closest polygon point and build ~90deg vector
31
31
const firstPoint = clickSequence [ 0 ] ;
32
32
const selectedGeometry = this . getSelectedGeometry ( props ) ;
33
- // @ts -ignore
33
+ // @ts -expect-error ts-migrate(2345) FIXME: Argument of type 'Geometry' is not assignable to p... Remove this comment to see the full error message
34
34
const feature = turfPolygonToLine ( selectedGeometry ) ;
35
35
36
36
const lines = feature . type === 'FeatureCollection' ? feature . features : [ feature ] ;
@@ -122,11 +122,11 @@ export class SplitPolygonMode extends GeoJsonEditMode {
122
122
type : 'Point' ,
123
123
coordinates : clickSequence [ clickSequence . length - 1 ] ,
124
124
} ;
125
- // @ts -ignore
125
+ // @ts -expect-error ts-migrate(2345) FIXME: Argument of type '{ type: string; coordinates: Pos... Remove this comment to see the full error message
126
126
const isPointInPolygon = booleanPointInPolygon ( pt , selectedGeometry ) ;
127
127
if ( clickSequence . length > 1 && tentativeFeature && ! isPointInPolygon ) {
128
128
this . resetClickSequence ( ) ;
129
- // @ts -ignore
129
+ // @ts -expect-error ts-migrate(2345) FIXME: Argument of type 'TentativeFeature' is not assigna... Remove this comment to see the full error message
130
130
const isLineInterectingWithPolygon = lineIntersect ( tentativeFeature , selectedGeometry ) ;
131
131
if ( isLineInterectingWithPolygon . features . length === 0 ) {
132
132
return ;
@@ -157,7 +157,7 @@ export class SplitPolygonMode extends GeoJsonEditMode {
157
157
}
158
158
159
159
const buffer = turfBuffer ( tentativeFeature , gap , { units } ) ;
160
- // @ts -ignore
160
+ // @ts -expect-error ts-migrate(2345) FIXME: Argument of type 'Geometry' is not assignable to p... Remove this comment to see the full error message
161
161
const updatedGeometry = turfDifference ( selectedGeometry , buffer ) ;
162
162
if ( ! updatedGeometry ) {
163
163
// eslint-disable-next-line no-console,no-undef
@@ -169,11 +169,10 @@ export class SplitPolygonMode extends GeoJsonEditMode {
169
169
let updatedCoordinates = [ ] ;
170
170
if ( type === 'Polygon' ) {
171
171
// Update the coordinates as per Multipolygon
172
- // @ts -ignore
173
172
updatedCoordinates = coordinates . map ( ( c ) => [ c ] ) ;
174
173
} else {
175
174
// Handle Case when Multipolygon has holes
176
- // @ts -ignore
175
+ // @ts -expect-error ts-migrate(2349) FIXME: This expression is not callable.
177
176
updatedCoordinates = coordinates . reduce ( ( agg , prev ) => {
178
177
prev . forEach ( ( p ) => {
179
178
agg . push ( [ p ] ) ;
0 commit comments