Skip to content

Commit

Permalink
Update app-router options type (#40862)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Sep 23, 2022
1 parent b68f783 commit 01ecb60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next/shared/lib/app-router-context.ts
Expand Up @@ -37,12 +37,12 @@ export interface AppRouterInstance {
* Hard navigate to the provided href. Fetches new data from the server.
* Pushes a new history entry.
*/
push(href: string, options: NavigateOptions): void
push(href: string, options?: NavigateOptions): void
/**
* Hard navigate to the provided href. Does not fetch data from the server if it was already fetched.
* Replaces the current history entry.
*/
replace(href: string, options: NavigateOptions): void
replace(href: string, options?: NavigateOptions): void
/**
* Soft prefetch the provided href. Does not fetch data from the server if it was already fetched.
*/
Expand Down

0 comments on commit 01ecb60

Please sign in to comment.