mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
Added react-resize-router module types definition
This commit is contained in:
+18
@@ -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;
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user