From 477a845579c36edbf897203c5e851888dabe6d3a Mon Sep 17 00:00:00 2001 From: Karol Janyst Date: Tue, 19 Dec 2017 13:02:53 +0900 Subject: [PATCH 1/2] Update definitions to match version 2.1 --- types/react-icon-base/index.d.ts | 12 ++++-------- types/react-icon-base/react-icon-base-tests.tsx | 2 +- types/recompose/tsconfig.json | 2 +- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/types/react-icon-base/index.d.ts b/types/react-icon-base/index.d.ts index e60719a762..1ee1d0eb85 100644 --- a/types/react-icon-base/index.d.ts +++ b/types/react-icon-base/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-icon-base 2.0 +// Type definitions for react-icon-base 2.1 // Project: https://github.com/gorangajic/react-icon-base#readme // Definitions by: Alexandre Paré , Karol Janyst // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -6,12 +6,8 @@ import * as React from "react"; -export = IconBaseClass; - -declare namespace IconBaseClass { - interface IconBaseProps extends React.SVGProps { - size?: string | number; - } +export interface IconBaseProps extends React.SVGProps { + size?: string | number; } -declare class IconBaseClass extends React.Component {} +export default class IconBaseClass extends React.Component {} diff --git a/types/react-icon-base/react-icon-base-tests.tsx b/types/react-icon-base/react-icon-base-tests.tsx index cb4fe929a9..d89f97a2ca 100644 --- a/types/react-icon-base/react-icon-base-tests.tsx +++ b/types/react-icon-base/react-icon-base-tests.tsx @@ -1,4 +1,4 @@ import * as React from "react"; -import * as IconBase from "react-icon-base"; +import IconBase from "react-icon-base"; export default ; diff --git a/types/recompose/tsconfig.json b/types/recompose/tsconfig.json index 4c56e4b125..4aae173e9b 100644 --- a/types/recompose/tsconfig.json +++ b/types/recompose/tsconfig.json @@ -22,4 +22,4 @@ "index.d.ts", "recompose-tests.tsx" ] -} \ No newline at end of file +} From 33e30f31eee5f7dc94c30154ce788f676c66afca Mon Sep 17 00:00:00 2001 From: Karol Janyst Date: Tue, 19 Dec 2017 14:46:44 +0900 Subject: [PATCH 2/2] Fix props type --- types/react-icon-base/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-icon-base/index.d.ts b/types/react-icon-base/index.d.ts index 1ee1d0eb85..0bd0005244 100644 --- a/types/react-icon-base/index.d.ts +++ b/types/react-icon-base/index.d.ts @@ -10,4 +10,4 @@ export interface IconBaseProps extends React.SVGProps { size?: string | number; } -export default class IconBaseClass extends React.Component {} +export default class IconBaseClass extends React.Component {}