Skip to content

Commit

Permalink
fix: update UrlObject type to match native url module (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottrippey committed Dec 23, 2023
2 parents 3abed1b + 4603169 commit 1b49592
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thick-feet-return.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"next-router-mock": patch
---

fix: update UrlObject type to match native url module
2 changes: 1 addition & 1 deletion src/MemoryRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { parseUrl, stringifyQueryString } from "./urls";

export type Url = string | UrlObject;
export type UrlObject = {
pathname?: string;
pathname?: string | null | undefined;
query?: NextRouter["query"];
hash?: string;
};
Expand Down

0 comments on commit 1b49592

Please sign in to comment.