query-string 8.0.1 → 8.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.d.ts +2 -1
- package/index.js +3 -1
- package/package.json +1 -1
package/base.d.ts
CHANGED
|
@@ -171,7 +171,8 @@ export type ParseOptions = {
|
|
|
171
171
|
readonly parseFragmentIdentifier?: boolean;
|
|
172
172
|
};
|
|
173
173
|
|
|
174
|
-
|
|
174
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
175
|
+
export type ParsedQuery<T = string> = Record<string, T | null | Array<T | null>>;
|
|
175
176
|
|
|
176
177
|
/**
|
|
177
178
|
Parse a query string into an object. Leading `?` or `#` are ignored, so you can pass `location.search` or `location.hash` directly.
|
package/index.js
CHANGED