Update app-router options type (#40862)

x-ref: [slack
thread](https://vercel.slack.com/archives/C043ANYDB24/p1663973909118009?thread_ts=1663973783.142799&cid=C043ANYDB24)
This commit is contained in:
JJ Kasper 2022-09-23 16:32:41 -07:00 committed by GitHub
parent b68f78384e
commit 01ecb60264
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.
*/