Update react-router-bootstrap definitions

This commit is contained in:
Karol Janyst
2017-01-19 11:13:06 +09:00
parent 76618bfda4
commit f49ca4f7ab
4 changed files with 18 additions and 43 deletions

View File

@@ -1,43 +1,7 @@
// Type definitions for react-router-bootstrap
// Type definitions for react-router-bootstrap 0.23
// Project: https://github.com/react-bootstrap/react-router-bootstrap
// Definitions by: Vincent Lesierse <https://github.com/vlesierse>
// Definitions by: Vincent Lesierse <https://github.com/vlesierse>, Karol Janyst <https://github.com/LKay>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="react"/>
/// <reference types="react-router"/>
declare namespace ReactRouterBootstrap {
interface LinkContainerProps extends ReactRouter.LinkProps {
disabled?: boolean
}
interface LinkContainer extends React.ComponentClass<LinkContainerProps> {}
interface LinkContainerElement extends React.ReactElement<LinkContainerProps> {}
const LinkContainer: LinkContainer
const IndexLinkContainer: LinkContainer
}
declare module "react-router-bootstrap/lib/LinkContainer" {
export default ReactRouterBootstrap.LinkContainer
}
declare module "react-router-bootstrap/lib/IndexLinkContainer" {
export default ReactRouterBootstrap.IndexLinkContainer
}
declare module "react-router-bootstrap" {
import LinkContainer from "react-router-bootstrap/lib/LinkContainer"
import IndexLinkContainer from "react-router-bootstrap/lib/IndexLinkContainer"
export {
LinkContainer,
IndexLinkContainer
}
}
export { default as LinkContainer } from "react-router-bootstrap/lib/LinkContainer"
export { default as IndexLinkContainer } from "react-router-bootstrap/lib/IndexLinkContainer"

View File

@@ -0,0 +1,7 @@
import { ComponentClass } from "react";
import { IndexLinkProps } from "react-router/lib/IndexLink";
type IndexLinkContainer = ComponentClass<IndexLinkProps>;
declare const IndexLinkContainer: IndexLinkContainer;
export default IndexLinkContainer;

View File

@@ -0,0 +1,7 @@
import { ComponentClass } from "react";
import { LinkProps } from "react-router/lib/Link";
type LinkContainer = ComponentClass<LinkProps>;
declare const LinkContainer: LinkContainer;
export default LinkContainer;

View File

@@ -10,9 +10,6 @@
"strictNullChecks": false,
"jsx": "preserve",
"baseUrl": "../",
"paths": {
"history": ["history/v2"]
},
"typeRoots": [
"../"
],