mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
react-select: change from ES6 export default to 'export =' to match javascript module (#9274)
This commit is contained in:
committed by
Masahiro Wakame
parent
672b7b71d1
commit
398bd74211
@@ -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<{}>, {}> {
|
||||
|
||||
|
||||
9
react-select/react-select.d.ts
vendored
9
react-select/react-select.d.ts
vendored
@@ -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 };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user