Skip to content

Commit f9ed795

Browse files

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

packages/next/server/base-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ export default abstract class Server<ServerOptions extends Options = Options> {
672672
fsRoutes: Route[]
673673
redirects: Route[]
674674
catchAllRoute: Route
675-
catchAllMiddleware?: Route
675+
catchAllMiddleware?: Route | undefined
676676
pageChecker: PageChecker
677677
useFileSystemPublicRoutes: boolean
678678
dynamicRoutes: DynamicRoutes | undefined

packages/next/shared/lib/router/router.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -459,10 +459,10 @@ export type BaseRouter = {
459459
query: ParsedUrlQuery
460460
asPath: string
461461
basePath: string
462-
locale?: string
463-
locales?: string[]
464-
defaultLocale?: string
465-
domainLocales?: DomainLocale[]
462+
locale?: string | undefined
463+
locales?: string[] | undefined
464+
defaultLocale?: string | undefined
465+
domainLocales?: DomainLocale[] | undefined
466466
isLocaleDomain: boolean
467467
}
468468

@@ -637,11 +637,11 @@ export default class Router implements BaseRouter {
637637
events: MittEmitter<RouterEvent>
638638
_wrapApp: (App: AppComponent) => any
639639
isSsr: boolean
640-
_inFlightRoute?: string
641-
_shallow?: boolean
642-
locales?: string[]
643-
defaultLocale?: string
644-
domainLocales?: DomainLocale[]
640+
_inFlightRoute?: string | undefined
641+
_shallow?: boolean | undefined
642+
locales?: string[] | undefined
643+
defaultLocale?: string | undefined
644+
domainLocales?: DomainLocale[] | undefined
645645
isReady: boolean
646646
isLocaleDomain: boolean
647647

0 commit comments

Comments
 (0)