From 443bfb35480d7994ca974f30e19e452947440962 Mon Sep 17 00:00:00 2001 From: Adam Lavin Date: Thu, 27 Jul 2017 16:00:48 +0100 Subject: [PATCH] Updated react-icon-base props to extend React.SVGProps (#18444) --- types/react-icon-base/index.d.ts | 5 +---- types/react-icon-base/react-icon-base-tests.tsx | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/types/react-icon-base/index.d.ts b/types/react-icon-base/index.d.ts index 7697b42bb5..e60719a762 100644 --- a/types/react-icon-base/index.d.ts +++ b/types/react-icon-base/index.d.ts @@ -9,11 +9,8 @@ import * as React from "react"; export = IconBaseClass; declare namespace IconBaseClass { - interface IconBaseProps { - color?: string; + interface IconBaseProps extends React.SVGProps { size?: string | number; - style?: React.CSSProperties; - viewBox?: string; } } diff --git a/types/react-icon-base/react-icon-base-tests.tsx b/types/react-icon-base/react-icon-base-tests.tsx index c0d56f03f2..cb4fe929a9 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"; -export default ; +export default ;