Skip to content

Commit

Permalink
Update index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuweb authored Jun 23, 2018
1 parent 1db61d4 commit 2a02d21
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Type definitions for re-resizable 4.4
// Type definitions for re-resizable 4.6
// Project: https://github.com/bokuweb/re-resizable
// Definitions by: Kalle Ott <https://github.com/kaoDev>
// Definitions: https://github.com/kaoDev/re-resizable
// TypeScript Version: 2.2
// TypeScript Version: 2.9.1

import * as React from 'react';

Expand Down Expand Up @@ -38,28 +38,28 @@ export type CSSSize = {
}

export type HandleComponent = {
top?: React.ReactElement<any>,
right?: React.ReactElement<any>,
bottom?: React.ReactElement<any>,
left?: React.ReactElement<any>,
topRight?: React.ReactElement<any>,
bottomRight?: React.ReactElement<any>,
bottomLeft?: React.ReactElement<any>,
topLeft?: React.ReactElement<any>,
top?: React.ReactNode,
right?: React.ReactNode,
bottom?: React.ReactNode,
left?: React.ReactNode,
topRight?: React.ReactNode,
bottomRight?: React.ReactNode,
bottomLeft?: React.ReactNode,
topLeft?: React.ReactNode,
};


export type ResizeCallback = (
event: MouseEvent | TouchEvent,
direction: ResizableDirection,
elementRef: HTMLElement,
elementRef: HTMLDivElement,
delta: NumberSize,
) => void;

export type ResizeStartCallback = (
e: React.MouseEvent<any> | React.TouchEvent<any>,
e: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>,
dir: ResizableDirection,
elementRef: HTMLElement,
elementRef: HTMLDivElement,
delta: NumberSize,
) => void;

Expand Down

0 comments on commit 2a02d21

Please sign in to comment.