@types/reach__router
Advanced tools
Comparing version 1.3.6 to 1.3.7
@@ -13,5 +13,12 @@ // Type definitions for @reach/router 1.3 | ||
import * as React from 'react'; | ||
import { Location as HLocation, LocationState } from 'history'; | ||
export type WindowLocation<S = LocationState> = Window['location'] & HLocation<S>; | ||
export interface HLocation<S = unknown> { | ||
pathname: string; | ||
search: string; | ||
state: S; | ||
hash: string; | ||
key?: string; | ||
} | ||
export type WindowLocation<S = unknown> = Window['location'] & HLocation<S>; | ||
export type HistoryActionType = 'PUSH' | 'POP'; | ||
@@ -18,0 +25,0 @@ export type HistoryLocation = WindowLocation & { state?: any }; |
{ | ||
"name": "@types/reach__router", | ||
"version": "1.3.6", | ||
"version": "1.3.7", | ||
"description": "TypeScript definitions for @reach/router", | ||
@@ -47,7 +47,6 @@ "license": "MIT", | ||
"dependencies": { | ||
"@types/history": "*", | ||
"@types/react": "*" | ||
}, | ||
"typesPublisherContentHash": "0246421096144015ecca60e3ce798f190a8149dd42c35b6a867bc09f989721d4", | ||
"typeScriptVersion": "3.2" | ||
"typesPublisherContentHash": "873f0b51f5ced35ee398c77cc81026e05b332908b748718b1bf31f5a9d5a6d20", | ||
"typeScriptVersion": "3.4" | ||
} |
@@ -11,4 +11,4 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 25 Sep 2020 23:56:29 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react), [@types/history](https://npmjs.com/package/@types/history) | ||
* Last updated: Fri, 22 Jan 2021 00:05:17 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
* Global values: none | ||
@@ -15,0 +15,0 @@ |
Floating dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
1
142
1
8765
- Removed@types/history@*
- Removed@babel/runtime@7.24.5(transitive)
- Removed@types/history@5.0.0(transitive)
- Removedhistory@5.3.0(transitive)
- Removedregenerator-runtime@0.14.1(transitive)