diff --git a/index.d.ts b/index.d.ts index 791273e2..5503cf8a 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,5 +1,5 @@ /// -import { CSSProperties } from 'react' +import { CSSProperties, DOMAttributes } from 'react' import { Transform, IconProp, @@ -17,7 +17,10 @@ export function FontAwesomeIcon(props: FontAwesomeIconProps): JSX.Element */ export type Props = FontAwesomeIconProps -export interface FontAwesomeIconProps { +// This is identical to the version of Omit in Typescript 3.5. It is included for compatibility with older versions of Typescript. +type BackwardCompatibleOmit = Pick>; + +export interface FontAwesomeIconProps extends BackwardCompatibleOmit, 'children' | 'mask'> { icon: IconProp mask?: IconProp className?: string