@@ -28,7 +28,7 @@ import {
2828 SkipSelf ,
2929 ViewContainerRef ,
3030} from '@angular/core' ;
31- import { Observable , Subject , Subscription } from 'rxjs' ;
31+ import { Observable , Subject , Subscription , Observer } from 'rxjs' ;
3232import { take } from 'rxjs/operators' ;
3333import { DragDropRegistry } from './drag-drop-registry' ;
3434import {
@@ -206,15 +206,16 @@ export class CdkDrag<T = any> implements AfterViewInit, OnDestroy {
206206 * Emits as the user is dragging the item. Use with caution,
207207 * because this event will fire for every pixel that the user has dragged.
208208 */
209- @Output ( 'cdkDragMoved' ) moved : Observable < CdkDragMove < T > > = Observable . create ( observer => {
210- const subscription = this . _moveEvents . subscribe ( observer ) ;
211- this . _moveEventSubscriptions ++ ;
212-
213- return ( ) => {
214- subscription . unsubscribe ( ) ;
215- this . _moveEventSubscriptions -- ;
216- } ;
217- } ) ;
209+ @Output ( 'cdkDragMoved' ) moved : Observable < CdkDragMove < T > > =
210+ Observable . create ( ( observer : Observer < CdkDragMove < T > > ) => {
211+ const subscription = this . _moveEvents . subscribe ( observer ) ;
212+ this . _moveEventSubscriptions ++ ;
213+
214+ return ( ) => {
215+ subscription . unsubscribe ( ) ;
216+ this . _moveEventSubscriptions -- ;
217+ } ;
218+ } ) ;
218219
219220 constructor (
220221 /** Element that the draggable is attached to. */
@@ -470,7 +471,7 @@ export class CdkDrag<T = any> implements AfterViewInit, OnDestroy {
470471 * Updates the item's position in its drop container, or moves it
471472 * into a new one, depending on its current drag position.
472473 */
473- private _updateActiveDropContainer ( { x, y} ) {
474+ private _updateActiveDropContainer ( { x, y} : Point ) {
474475 // Drop container that draggable has been moved into.
475476 let newContainer = this . dropContainer . _getSiblingContainerFromPosition ( this , x , y ) ;
476477
0 commit comments