From d0128ad5161c0975513ca4ff745f3ba9e8f2b65d Mon Sep 17 00:00:00 2001 From: Artur Eshenbrener Date: Fri, 3 Feb 2017 18:13:17 +0300 Subject: [PATCH] react: make defaultProps Optional Actually, defaultProps is `Optional

` --- react/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react/index.d.ts b/react/index.d.ts index f25e5c0afd..e929e5ed7a 100644 --- a/react/index.d.ts +++ b/react/index.d.ts @@ -207,7 +207,7 @@ declare namespace React { (props: P & { children?: ReactNode }, context?: any): ReactElement | null; propTypes?: ValidationMap

; contextTypes?: ValidationMap; - defaultProps?: P; + defaultProps?: Partial

; displayName?: string; } @@ -216,7 +216,7 @@ declare namespace React { propTypes?: ValidationMap

; contextTypes?: ValidationMap; childContextTypes?: ValidationMap; - defaultProps?: P; + defaultProps?: Partial

; displayName?: string; }