diff --git a/types/react-big-calendar/index.d.ts b/types/react-big-calendar/index.d.ts index 646826bee4..529d14a369 100644 --- a/types/react-big-calendar/index.d.ts +++ b/types/react-big-calendar/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-big-calendar 0.12.3 +// Type definitions for react-big-calendar 0.14.0 // Project: https://github.com/intljusticemission/react-big-calendar // Definitions by: Piotr Witek // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -53,9 +53,5 @@ declare module 'react-big-calendar' { static globalizeLocalizer(globalizeInstance: Object): void; } - /* This enables 'import * as BigCalendar' syntax when compiling to es2015 */ - namespace BigCalendar {} - - /* react-big-calendar is exported as a commonjs module (it uses babel-preset-jason) */ - export = BigCalendar; + export default BigCalendar; } diff --git a/types/react-big-calendar/react-big-calendar-tests.tsx b/types/react-big-calendar/react-big-calendar-tests.tsx index 2ca939c0a6..b123532d49 100644 --- a/types/react-big-calendar/react-big-calendar-tests.tsx +++ b/types/react-big-calendar/react-big-calendar-tests.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import * as ReactDOM from "react-dom"; import * as ReactDOMServer from "react-dom/server"; -import BigCalendar = require("react-big-calendar"); +import BigCalendar from "react-big-calendar"; // Don't want to add this as a dependency, because it is only used for tests. declare const moment: any;