diff --git a/types/react-is/react-is-tests.tsx b/types/react-is/react-is-tests.tsx index 18ae0c4a26..3b41e9d06f 100644 --- a/types/react-is/react-is-tests.tsx +++ b/types/react-is/react-is-tests.tsx @@ -6,7 +6,7 @@ import * as ReactIs from 'react-is'; // Determining if a Component is Valid interface CompProps { - forwardedRef?: React.Ref; + forwardedRef: React.Ref | null; children?: React.ReactNode; } diff --git a/types/react/index.d.ts b/types/react/index.d.ts index d554c8c2a9..89db73e581 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -463,7 +463,7 @@ declare namespace React { } interface RefForwardingComponent { - (props: P & { children?: ReactNode }, ref?: Ref): ReactElement | null; + (props: P & { children?: ReactNode }, ref: Ref | null): ReactElement | null; propTypes?: ValidationMap

; contextTypes?: ValidationMap; defaultProps?: Partial

;