Skip to content

Commit

Permalink
Fix TypeScript type for stringifyUrl()
Browse files Browse the repository at this point in the history
Fixes #308
  • Loading branch information
sindresorhus committed Feb 26, 2021
1 parent 2a17881 commit a6d4a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -372,7 +372,7 @@ export interface UrlObject {
/**
Overrides queries in the `url` property.
*/
readonly query: StringifiableRecord;
readonly query?: StringifiableRecord;

/**
Overrides the fragment identifier in the `url` property.
Expand Down

0 comments on commit a6d4a3f

Please sign in to comment.