Skip to content

Commit

Permalink
Fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
forabi committed Jul 4, 2019
1 parent a4a6b34 commit 86d393c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useClickAndDrag.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useCallback, useEffect, useState } from 'react';
import { fromEvent, merge, of } from 'rxjs';
import { fromEvent, merge, Observable, of } from 'rxjs';
import {
delay,
filter,
Expand Down Expand Up @@ -86,7 +86,7 @@ export function useClickAndDrag(

const move$ = merge(mouseMove$, touchMove$).pipe(map(mapCoordsToContainer));

const box$: rxjs.Observable<Rect | null> = dragStart$.pipe(
const box$: Observable<Rect | null> = dragStart$.pipe(
tap(() => {
setIsDragging(true);
setHasFinishedDragging(false);
Expand Down

0 comments on commit 86d393c

Please sign in to comment.