mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-02 21:10:30 +00:00
WIP WIP WIP WIP WIP WIP: Remove trailing newlines WIP WIP WIP WIP WIP WIP WIP WIP: All tests pass WIP WIP WIP
44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
// Type definitions for react-router-bootstrap
|
|
// Project: https://github.com/react-bootstrap/react-router-bootstrap
|
|
// Definitions by: Vincent Lesierse <https://github.com/vlesierse>
|
|
// 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
|
|
}
|
|
|
|
}
|