@types/react-router-bootstrap
Advanced tools
| import type { ComponentClass, CSSProperties, MouseEventHandler, ReactNode } from "react"; | ||
| // See https://github.com/react-bootstrap/react-router-bootstrap/blob/master/src/LinkContainer.js | ||
| interface LinkContainerProps { | ||
| children: ReactNode; | ||
| onClick?: MouseEventHandler<HTMLElement>; | ||
| replace?: boolean; | ||
| to: To; | ||
| state?: object; | ||
| className?: string; | ||
| activeClassName?: string; | ||
| style?: CSSProperties; | ||
| activeStyle?: CSSProperties; | ||
| isActive?: ((match: any, location: any) => boolean) | boolean; | ||
| } | ||
| type To = string | Partial<Path>; | ||
| interface Path { | ||
| pathname: string; | ||
| search: string; | ||
| hash: string; | ||
| } | ||
| type LinkContainer = ComponentClass<LinkContainerProps>; | ||
| declare const LinkContainer: LinkContainer; | ||
| export default LinkContainer; |
| { | ||
| "name": "@types/react-router-bootstrap", | ||
| "version": "0.26.4", | ||
| "version": "0.26.5", | ||
| "description": "TypeScript definitions for react-router-bootstrap", | ||
@@ -40,4 +40,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-router-bootstrap", | ||
| }, | ||
| "typesPublisherContentHash": "68ab80549367fa23886e95470947c56fa6aa9ac88daa3e90b9249c573c20c130", | ||
| "typesPublisherContentHash": "f4143d8ae82137664e12e76bc7a604d27c66cd81443e56b63db03426bd0317ed", | ||
| "typeScriptVersion": "4.5" | ||
| } |
@@ -9,10 +9,5 @@ # Installation | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-router-bootstrap. | ||
| ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-router-bootstrap/index.d.ts) | ||
| ````ts | ||
| export { default as LinkContainer } from "react-router-bootstrap/lib/LinkContainer"; | ||
| ```` | ||
| ### Additional Details | ||
| * Last updated: Wed, 18 Oct 2023 11:45:06 GMT | ||
| * Last updated: Wed, 18 Oct 2023 18:04:04 GMT | ||
| * Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -19,0 +14,0 @@ |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
4072
15.78%5
25%24
2300%0
-100%16
-23.81%