Skip to content

Commit 7bba5bb

Browse files
committed
Fix typo in a TypeScript type
Fixes #362
1 parent c97b6b2 commit 7bba5bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ export type ParseOptions = {
171171
readonly parseFragmentIdentifier?: boolean;
172172
};
173173

174-
export type ParsedQuery<T = string> = Record<string, T | undefined | Array<T | undefined>>;
174+
// eslint-disable-next-line @typescript-eslint/ban-types
175+
export type ParsedQuery<T = string> = Record<string, T | null | Array<T | null>>;
175176

176177
/**
177178
Parse a query string into an object. Leading `?` or `#` are ignored, so you can pass `location.search` or `location.hash` directly.

0 commit comments

Comments
 (0)