From b64fefa8ed6a857d10b7ced8215fe9d389a2ea22 Mon Sep 17 00:00:00 2001 From: Patrick Pan Date: Mon, 2 Jul 2018 13:19:11 -0400 Subject: [PATCH] Change staticContext to optional prop, instead of possibly undefined (but required) (#26645) --- types/react-router/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-router/index.d.ts b/types/react-router/index.d.ts index 34092d84b7..4b0f45853f 100644 --- a/types/react-router/index.d.ts +++ b/types/react-router/index.d.ts @@ -68,7 +68,7 @@ export interface RouteComponentProps history: H.History; location: H.Location; match: match

; - staticContext: C | undefined; + staticContext?: C; } export interface RouteProps {