diff --git a/types/react-resize-detector/index.d.ts b/types/react-resize-detector/index.d.ts new file mode 100644 index 0000000000..87b6c2df6a --- /dev/null +++ b/types/react-resize-detector/index.d.ts @@ -0,0 +1,18 @@ +// Type definitions for react-resize-detector 2.1 +// Project: https://github.com/maslianok/react-resize-detector +// Definitions by: Matthew James +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import * as React from "react"; + +interface ReactResizeDetectorProps extends React.Props { + onResize: (width: number, height: number) => void; + handleHeight?: boolean; + handleWidth?: boolean; + skipOnMount?: boolean; + resizableElementId?: string; +} + +declare class ReactResizeDetector extends React.Component { } + +export = ReactResizeDetector; diff --git a/types/react-resize-detector/tsconfig.json b/types/react-resize-detector/tsconfig.json new file mode 100644 index 0000000000..a2cbd4e379 --- /dev/null +++ b/types/react-resize-detector/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts" + ] +} diff --git a/types/react-resize-detector/tslint.json b/types/react-resize-detector/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/react-resize-detector/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }