diff --git a/types/react-rnd/react-rnd-tests.tsx b/types/react-rnd/react-rnd-tests.tsx index 9f1cbc593c..070c793f87 100644 --- a/types/react-rnd/react-rnd-tests.tsx +++ b/types/react-rnd/react-rnd-tests.tsx @@ -1,7 +1,8 @@ -import React = require('react'); -import Rnd = require('react-rnd'); +import * as React from 'react'; +import Rnd from 'react-rnd'; +import { ResizeHandler } from 'react-rnd'; -const onResize: Rnd.ResizeHandler = (e, direction, ref, delta, position) => { +const onResize: ResizeHandler = (e, direction, ref, delta, position) => { direction === 'right'; delta.width; delta.height;