From 5027017378d4bfd164f87dc48ef9a28d4a7ff9eb Mon Sep 17 00:00:00 2001 From: Andy Date: Mon, 18 Sep 2017 11:08:36 -0700 Subject: [PATCH] react-router/v2: Fix default export of object (#19849) --- types/react-router/v2/lib/PropTypes.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/types/react-router/v2/lib/PropTypes.d.ts b/types/react-router/v2/lib/PropTypes.d.ts index bbd6431070..c82c9e59e8 100644 --- a/types/react-router/v2/lib/PropTypes.d.ts +++ b/types/react-router/v2/lib/PropTypes.d.ts @@ -8,12 +8,12 @@ export const components: React.Requireable; export const route: React.Requireable; export const routes: React.Requireable; -export default { - falsy, - history, - location, - component, - components, - route +declare const defaultExport: { + falsy: typeof falsy, + history: typeof history, + location: typeof location, + component: typeof component, + components: typeof components, + route: typeof route, }; - +export default defaultExport;