@types/react-router-bootstrap
Advanced tools
@@ -1,10 +0,1 @@ | ||
| // Type definitions for react-router-bootstrap 0.26 | ||
| // Project: https://github.com/react-bootstrap/react-router-bootstrap | ||
| // Definitions by: Vincent Lesierse <https://github.com/vlesierse> | ||
| // Karol Janyst <https://github.com/LKay> | ||
| // Olmo del Corral <https://github.com/olmobrutall> | ||
| // Max Erenberg <https://github.com/maxerenberg> | ||
| // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
| // TypeScript Version: 2.8 | ||
| export { default as LinkContainer } from "react-router-bootstrap/lib/LinkContainer"; |
| { | ||
| "name": "@types/react-router-bootstrap", | ||
| "version": "0.26.3", | ||
| "version": "0.26.4", | ||
| "description": "TypeScript definitions for react-router-bootstrap", | ||
@@ -10,19 +10,19 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-router-bootstrap", | ||
| "name": "Vincent Lesierse", | ||
| "url": "https://github.com/vlesierse", | ||
| "githubUsername": "vlesierse" | ||
| "githubUsername": "vlesierse", | ||
| "url": "https://github.com/vlesierse" | ||
| }, | ||
| { | ||
| "name": "Karol Janyst", | ||
| "url": "https://github.com/LKay", | ||
| "githubUsername": "LKay" | ||
| "githubUsername": "LKay", | ||
| "url": "https://github.com/LKay" | ||
| }, | ||
| { | ||
| "name": "Olmo del Corral", | ||
| "url": "https://github.com/olmobrutall", | ||
| "githubUsername": "olmobrutall" | ||
| "githubUsername": "olmobrutall", | ||
| "url": "https://github.com/olmobrutall" | ||
| }, | ||
| { | ||
| "name": "Max Erenberg", | ||
| "url": "https://github.com/maxerenberg", | ||
| "githubUsername": "maxerenberg" | ||
| "githubUsername": "maxerenberg", | ||
| "url": "https://github.com/maxerenberg" | ||
| } | ||
@@ -41,4 +41,4 @@ ], | ||
| }, | ||
| "typesPublisherContentHash": "ecbcd39390f86dae8756a092c202b8576ec06f1e945115bfbac07386a6940f15", | ||
| "typesPublisherContentHash": "68ab80549367fa23886e95470947c56fa6aa9ac88daa3e90b9249c573c20c130", | ||
| "typeScriptVersion": "4.5" | ||
| } |
@@ -9,9 +9,13 @@ # 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, 27 Sep 2023 07:12:04 GMT | ||
| * Last updated: Wed, 18 Oct 2023 11:45:06 GMT | ||
| * Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
| * Global values: none | ||
| # Credits | ||
| These definitions were written by [Vincent Lesierse](https://github.com/vlesierse), [Karol Janyst](https://github.com/LKay), [Olmo del Corral](https://github.com/olmobrutall), and [Max Erenberg](https://github.com/maxerenberg). |
| 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; |
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
21
23.53%3517
-23.06%4
-20%1
-96.87%1
Infinity%