mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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:
parent
1151caa39e
commit
4142c2788f
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user