mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Update react-router-bootstrap definitions
This commit is contained in:
44
react-router-bootstrap/index.d.ts
vendored
44
react-router-bootstrap/index.d.ts
vendored
@@ -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"
|
||||
|
||||
7
react-router-bootstrap/lib/IndexLinkContainer.d.ts
vendored
Normal file
7
react-router-bootstrap/lib/IndexLinkContainer.d.ts
vendored
Normal 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;
|
||||
7
react-router-bootstrap/lib/LinkContainer.d.ts
vendored
Normal file
7
react-router-bootstrap/lib/LinkContainer.d.ts
vendored
Normal 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;
|
||||
@@ -10,9 +10,6 @@
|
||||
"strictNullChecks": false,
|
||||
"jsx": "preserve",
|
||||
"baseUrl": "../",
|
||||
"paths": {
|
||||
"history": ["history/v2"]
|
||||
},
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user