Update test failure from merge conflict.

A test written on 12 Sep was merged on 24 Sep. In between, the Props
definition it used changed so that the new test was an error.

This PR just clones the original Props type and gives it a new name.
This commit is contained in:
Nathan Shively-Sanders 2019-09-25 11:29:30 -07:00
parent 1151caa39e
commit 4142c2788f

View File

@ -402,7 +402,13 @@ const ForwardingRefComponent = React.forwardRef((props: {}, ref: React.Ref<RefCo
return React.createElement(RefComponent, { ref });
});
const ForwardingRefComponentPropTypes: React.WeakValidationMap<Props> = {};
interface AttributeProps extends React.Attributes {
hello: string;
world?: string | null;
foo: number;
}
const ForwardingRefComponentPropTypes: React.WeakValidationMap<AttributeProps> = {};
ForwardingRefComponent.propTypes = ForwardingRefComponentPropTypes;
function RefCarryingComponent() {