Skip to content

Commit

Permalink
Type ref properly (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
natew authored and greena13 committed May 3, 2019
1 parent 31bca7b commit b866ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export interface ComponentPropsBase {
* to a DOM-mountable child (preferably the root)
*/
export interface ComponentProps extends ComponentPropsBase {
ref?: React.forwardRef<React.ComponentClass, ComponentPropsBase>
ref?: React.MutableRefObject<React.ComponentClass>
}

export type ReactComponent = React.ComponentClass | string | React.SFC<ComponentProps>;
Expand Down

0 comments on commit b866ec1

Please sign in to comment.