Skip to content

Commit

Permalink
Support TS exactOptionalPropertyTypes (fixes #35280) (#35281)
Browse files Browse the repository at this point in the history
  • Loading branch information
quisido committed May 23, 2022
1 parent 0d80b11 commit f9ed795
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/next/server/base-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ export default abstract class Server<ServerOptions extends Options = Options> {
fsRoutes: Route[]
redirects: Route[]
catchAllRoute: Route
catchAllMiddleware?: Route
catchAllMiddleware?: Route | undefined
pageChecker: PageChecker
useFileSystemPublicRoutes: boolean
dynamicRoutes: DynamicRoutes | undefined
Expand Down
18 changes: 9 additions & 9 deletions packages/next/shared/lib/router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,10 @@ export type BaseRouter = {
query: ParsedUrlQuery
asPath: string
basePath: string
locale?: string
locales?: string[]
defaultLocale?: string
domainLocales?: DomainLocale[]
locale?: string | undefined
locales?: string[] | undefined
defaultLocale?: string | undefined
domainLocales?: DomainLocale[] | undefined
isLocaleDomain: boolean
}

Expand Down Expand Up @@ -637,11 +637,11 @@ export default class Router implements BaseRouter {
events: MittEmitter<RouterEvent>
_wrapApp: (App: AppComponent) => any
isSsr: boolean
_inFlightRoute?: string
_shallow?: boolean
locales?: string[]
defaultLocale?: string
domainLocales?: DomainLocale[]
_inFlightRoute?: string | undefined
_shallow?: boolean | undefined
locales?: string[] | undefined
defaultLocale?: string | undefined
domainLocales?: DomainLocale[] | undefined
isReady: boolean
isLocaleDomain: boolean

Expand Down

0 comments on commit f9ed795

Please sign in to comment.