mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 18:43:21 +08:00
Merge pull request #17746 from frankwallis/master
react-big-calendar: update to use es6 default export
This commit is contained in:
8
types/react-big-calendar/index.d.ts
vendored
8
types/react-big-calendar/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user