react-select: change from ES6 export default to 'export =' to match javascript module (#9274)

This commit is contained in:
Charlie Arnold
2016-05-14 10:52:52 -07:00
committed by Masahiro Wakame
parent 672b7b71d1
commit 398bd74211
2 changed files with 9 additions and 3 deletions

View File

@@ -5,7 +5,8 @@
import * as React from "react";
import * as ReactDOM from "react-dom";
import Select, { Option, MenuRendererProps } from "react-select";
import { Option, MenuRendererProps } from "react-select-props";
import Select = require("react-select");
class SelectTest extends React.Component<React.Props<{}>, {}> {

View File

@@ -402,10 +402,15 @@ declare namespace ReactSelect {
}
declare module "react-select" {
const select: ReactSelect.ReactSelectClass;
const RS: ReactSelect.ReactSelectClass;
export = RS;
}
declare module "react-select-props" {
interface Option extends ReactSelect.Option {}
interface MenuRendererProps extends ReactSelect.MenuRendererProps {}
export default select;
export { MenuRendererProps, Option };
}