diff --git a/types/react/test/index.ts b/types/react/test/index.ts index 7ab3cc4d33..6a44ae5682 100644 --- a/types/react/test/index.ts +++ b/types/react/test/index.ts @@ -402,7 +402,13 @@ const ForwardingRefComponent = React.forwardRef((props: {}, ref: React.Ref = {}; +interface AttributeProps extends React.Attributes { + hello: string; + world?: string | null; + foo: number; +} + +const ForwardingRefComponentPropTypes: React.WeakValidationMap = {}; ForwardingRefComponent.propTypes = ForwardingRefComponentPropTypes; function RefCarryingComponent() {