Skip to content

Commit

Permalink
Merge pull request #325 from mdanka/patch-1
Browse files Browse the repository at this point in the history
Fixed types in Resizable callbacks
  • Loading branch information
bokuweb authored Jul 20, 2018
2 parents 2a91be1 + 20e075d commit 494b38d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ If you want to permit only right direction resizing, set `{ top:false, right:tru
```javascript
type ResizeStartCallback = (
e: SyntheticMouseEvent<HTMLDivElement> | SyntheticTouchEvent<HTMLDivElement>,
dir: Direction,
refToElement: React.ElementRef<'div'>,
dir: ResizableDirection,
refToElement: HTMLDivElement,
) => void;
```

Expand All @@ -206,8 +206,8 @@ Calls when resizable component resize start.
```javascript
type ResizeCallback = (
event: MouseEvent | TouchEvent,
direction: Direction,
refToElement: React.ElementRef<'div'>,
direction: ResizableDirection,
refToElement: HTMLDivElement,
delta: NumberSize,
) => void;
```
Expand All @@ -221,8 +221,8 @@ Calls when resizable component resizing.
```javascript
type ResizeCallback = (
event: MouseEvent | TouchEvent,
direction: Direction,
refToElement: React.ElementRef<'div'>,
direction: ResizableDirection,
refToElement: HTMLDivElement,
delta: NumberSize,
) => void;
```
Expand Down

0 comments on commit 494b38d

Please sign in to comment.