@iteam/hooks
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -1,2 +0,3 @@ | ||
import queryString from 'query-string'; | ||
export declare const useQueryParams: () => queryString.OutputParams; | ||
export declare const useQueryParams: () => { | ||
[key: string]: string | string[] | undefined; | ||
}; |
{ | ||
"name": "@iteam/hooks", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"main": "dist/hooks.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/hooks.esm.js", |
import { useState } from 'react' | ||
import queryString from 'query-string' | ||
export const useQueryParams = () => { | ||
export const useQueryParams = (): { | ||
[key: string]: string | string[] | undefined | ||
} => { | ||
const [queryParams] = useState(() => { | ||
@@ -6,0 +8,0 @@ const params = queryString.parse(window.location.search) |
@@ -20,3 +20,3 @@ { | ||
"include": ["src/**/*"], | ||
"exclude": ["node_modules", "dist"] | ||
"exclude": ["node_modules", "dist", "**/__tests__/**/*"] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41174
37
1202