From 51a96fbcdbca000de61f348d98916f6d5bfc2fbe Mon Sep 17 00:00:00 2001 From: cwmoo740 Date: Mon, 17 Apr 2017 13:50:03 -0400 Subject: [PATCH] react-onclickoutside header parsing errors, update tslint to extend dtslint --- types/react-onclickoutside/index.d.ts | 11 ++++------- types/react-onclickoutside/tslint.json | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/types/react-onclickoutside/index.d.ts b/types/react-onclickoutside/index.d.ts index 0e4d51edda..dc304f3b5d 100644 --- a/types/react-onclickoutside/index.d.ts +++ b/types/react-onclickoutside/index.d.ts @@ -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 and cwmoo740 +// Definitions by: Karol Janyst // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 @@ -28,11 +28,8 @@ declare namespace OnClickOut { type DecoratedComponent

= React.ComponentClass

; declare function OnClickOut

( - component: React.StatelessComponent

> -): DecoratedComponent

; - -declare function OnClickOut

( - component: React.ComponentClass

>> + component: React.StatelessComponent

> | + React.ComponentClass

>> ): DecoratedComponent

; export = OnClickOut; diff --git a/types/react-onclickoutside/tslint.json b/types/react-onclickoutside/tslint.json index ec365f164b..d88586e5bd 100644 --- a/types/react-onclickoutside/tslint.json +++ b/types/react-onclickoutside/tslint.json @@ -1,3 +1,3 @@ { - "extends": "../tslint.json" + "extends": "dtslint/dt.json" }