react-onclickoutside header parsing errors, update tslint to extend dtslint

This commit is contained in:
cwmoo740
2017-04-17 13:50:03 -04:00
parent 79d146c737
commit 51a96fbcdb
2 changed files with 5 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
// Type definitions for react-onclickoutside v5.7.0
// Type definitions for react-onclickoutside 5.7
// Project: https://github.com/Pomax/react-onclickoutside
// Definitions by: Karol Janyst <https://github.com/LKay> and cwmoo740 <https://github.com/cwmoo740>
// Definitions by: Karol Janyst <https://github.com/LKay>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
@@ -28,11 +28,8 @@ declare namespace OnClickOut {
type DecoratedComponent<P> = React.ComponentClass<P & OnClickOut.OnClickOutProps>;
declare function OnClickOut<P>(
component: React.StatelessComponent<P & OnClickOut.InjectedOnClickOutProps & OnClickOut.HandleClickOutside<any>>
): DecoratedComponent<P>;
declare function OnClickOut<P>(
component: React.ComponentClass<P & OnClickOut.InjectedOnClickOutProps & Partial<OnClickOut.HandleClickOutside<any>>>
component: React.StatelessComponent<P & OnClickOut.InjectedOnClickOutProps & OnClickOut.HandleClickOutside<any>> |
React.ComponentClass<P & OnClickOut.InjectedOnClickOutProps & Partial<OnClickOut.HandleClickOutside<any>>>
): DecoratedComponent<P>;
export = OnClickOut;

View File

@@ -1,3 +1,3 @@
{
"extends": "../tslint.json"
"extends": "dtslint/dt.json"
}