From 9c83d28ab785ac89d639fefc1a8a2d5dc62023c5 Mon Sep 17 00:00:00 2001 From: Jason Quense Date: Thu, 21 Mar 2019 13:43:18 -0400 Subject: [PATCH 1/3] Add prop-types to RefForwarded Components --- types/react/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 973c87ec1f8d32..32a7bf30d9bb1d 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -703,6 +703,7 @@ declare namespace React { // will show `ForwardRef(${Component.displayName || Component.name})` in devtools by default, // but can be given its own specific name interface ForwardRefExoticComponent

extends NamedExoticComponent

{ + propTypes?: WeakValidationMap

; defaultProps?: Partial

; } From d3eec6f68fafdf80ffacacee65597cfe2860375d Mon Sep 17 00:00:00 2001 From: Jason Quense Date: Thu, 21 Mar 2019 13:45:21 -0400 Subject: [PATCH 2/3] Update index.d.ts --- types/react/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 32a7bf30d9bb1d..47492bf49b54cd 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -703,7 +703,7 @@ declare namespace React { // will show `ForwardRef(${Component.displayName || Component.name})` in devtools by default, // but can be given its own specific name interface ForwardRefExoticComponent

extends NamedExoticComponent

{ - propTypes?: WeakValidationMap

; + propTypes?: WeakValidationMap

; defaultProps?: Partial

; } From fe323a79965def9e0d8d22c8022f1d23fdadc94a Mon Sep 17 00:00:00 2001 From: Jason Quense Date: Thu, 21 Mar 2019 16:30:40 -0400 Subject: [PATCH 3/3] Update index.d.ts --- types/react/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 47492bf49b54cd..af77c850f2b440 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -703,7 +703,7 @@ declare namespace React { // will show `ForwardRef(${Component.displayName || Component.name})` in devtools by default, // but can be given its own specific name interface ForwardRefExoticComponent

extends NamedExoticComponent

{ - propTypes?: WeakValidationMap

; + propTypes?: WeakValidationMap

; defaultProps?: Partial

; }