From 01ecb60264f8d769ecb799e82b3504c1cfb9a73f Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Fri, 23 Sep 2022 16:32:41 -0700 Subject: [PATCH] Update app-router options type (#40862) x-ref: [slack thread](https://vercel.slack.com/archives/C043ANYDB24/p1663973909118009?thread_ts=1663973783.142799&cid=C043ANYDB24) --- packages/next/shared/lib/app-router-context.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/next/shared/lib/app-router-context.ts b/packages/next/shared/lib/app-router-context.ts index bceec77fc5..686a5c3e99 100644 --- a/packages/next/shared/lib/app-router-context.ts +++ b/packages/next/shared/lib/app-router-context.ts @@ -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. */