diff --git a/types/react-fontawesome/index.d.ts b/types/react-fontawesome/index.d.ts index 118f6fb4cd..9fa93692b3 100644 --- a/types/react-fontawesome/index.d.ts +++ b/types/react-fontawesome/index.d.ts @@ -11,12 +11,16 @@ import * as React from 'react'; export = FontAwesome; +interface Intermediate extends React.AllHTMLAttributes { + size?: any; +} + declare namespace FontAwesome { type FontAwesomeSize = 'lg' | '2x' | '3x' | '4x' | '5x'; type FontAwesomeStack = '1x' | '2x'; type FontAwesomeFlip = 'horizontal' | 'vertical'; - type FontAwesomeProps = React.HTMLProps | { + interface FontAwesomeProps extends Intermediate { ariaLabel?: string; border?: boolean; cssModule?: any; @@ -30,7 +34,7 @@ declare namespace FontAwesome { spin?: boolean; stack?: FontAwesomeStack; tag?: string; - }; + } } declare class FontAwesome extends React.Component {}