Added react-resize-router module types definition

This commit is contained in:
Matthew James
2018-03-02 17:07:23 +00:00
parent ce73af4e00
commit 4edfe80d9c
3 changed files with 40 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
// Type definitions for react-resize-detector 2.1
// Project: https://github.com/maslianok/react-resize-detector
// Definitions by: Matthew James <https://github.com/matthew-matvei>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as React from "react";
interface ReactResizeDetectorProps extends React.Props<ReactResizeDetector> {
onResize: (width: number, height: number) => void;
handleHeight?: boolean;
handleWidth?: boolean;
skipOnMount?: boolean;
resizableElementId?: string;
}
declare class ReactResizeDetector extends React.Component<ReactResizeDetectorProps> { }
export = ReactResizeDetector;
+21
View File
@@ -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"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }