Skip to content

Commit

Permalink
Update forwardedRef type (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
TiagoPortfolio committed Nov 23, 2020
1 parent 974baa7 commit 079e3d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -21,7 +21,7 @@ export type Props = FontAwesomeIconProps
type BackwardCompatibleOmit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;

export interface FontAwesomeIconProps extends BackwardCompatibleOmit<SVGAttributes<SVGSVGElement>, 'children' | 'mask' | 'transform'> {
forwardedRef?: ((e: any) => void) | React.RefObject<any>
forwardedRef?: ((e: any) => void) | React.MutableRefObject<any> | null
icon: IconProp
mask?: IconProp
className?: string
Expand Down

0 comments on commit 079e3d0

Please sign in to comment.