Skip to content

Commit b866ec1

Browse files
natewgreena13
authored andcommitted
Type ref properly (#168)
1 parent 31bca7b commit b866ec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export interface ComponentPropsBase {
8181
* to a DOM-mountable child (preferably the root)
8282
*/
8383
export interface ComponentProps extends ComponentPropsBase {
84-
ref?: React.forwardRef<React.ComponentClass, ComponentPropsBase>
84+
ref?: React.MutableRefObject<React.ComponentClass>
8585
}
8686

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

0 commit comments

Comments
 (0)