Merge pull request #17746 from frankwallis/master

react-big-calendar: update to use es6 default export
This commit is contained in:
Ron Buckton
2017-07-06 23:26:27 -07:00
committed by GitHub
2 changed files with 3 additions and 7 deletions

View File

@@ -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 <http://piotrwitek.github.io>
// 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;
}

View File

@@ -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;