@@ -69,6 +69,7 @@ export class KeyboardDragStrategy extends dragging.BlockDragStrategy {
6969 // to the top left of the workspace.
7070 // @ts -expect-error block and startLoc are private.
7171 this . block . moveDuringDrag ( this . startLoc ) ;
72+ // @ts -expect-error connectionCandidate is private.
7273 this . connectionCandidate = this . createInitialCandidate ( ) ;
7374 this . forceShowPreview ( ) ;
7475 this . block . addIcon ( new MoveIcon ( this . block ) ) ;
@@ -80,7 +81,9 @@ export class KeyboardDragStrategy extends dragging.BlockDragStrategy {
8081 super . drag ( newLoc ) ;
8182
8283 // Handle the case when an unconstrained drag found a connection candidate.
84+ // @ts -expect-error connectionCandidate is private.
8385 if ( this . connectionCandidate ) {
86+ // @ts -expect-error connectionCandidate is private.
8487 const neighbour = ( this . connectionCandidate as ConnectionCandidate )
8588 . neighbour ;
8689 // The next constrained move will resume the search from the current
@@ -256,6 +259,7 @@ export class KeyboardDragStrategy extends dragging.BlockDragStrategy {
256259 private forceShowPreview ( ) {
257260 // @ts -expect-error connectionPreviewer is private
258261 const previewer = this . connectionPreviewer ;
262+ // @ts -expect-error connectionCandidate is private
259263 const candidate = this . connectionCandidate as ConnectionCandidate ;
260264 if ( ! candidate || ! previewer ) return ;
261265 const block = this . block ;
0 commit comments