Skip to content

Commit

Permalink
Fix typo in a TypeScript type
Browse files Browse the repository at this point in the history
Fixes #362
  • Loading branch information
sindresorhus committed Dec 14, 2022
1 parent c97b6b2 commit 7bba5bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base.d.ts
Expand Up @@ -171,7 +171,8 @@ export type ParseOptions = {
readonly parseFragmentIdentifier?: boolean;
};

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

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

0 comments on commit 7bba5bb

Please sign in to comment.