Skip to content

Commit

Permalink
remove new types
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Nov 15, 2024
1 parent 279df80 commit 875bd7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/next/src/lib/metadata/resolve-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ type ViewportResolver = (
parent: ResolvingViewport
) => Viewport | Promise<Viewport>

export type MetadataErrorType = 'not-found' | 'forbidden' | 'unauthorized'
export type MetadataErrorType = 'not-found'

export type MetadataItems = [
Metadata | MetadataResolver | null,
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/server/lib/app-dir-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export async function getLayoutOrPageModule(loaderTree: LoaderTree) {

export async function getComponentTypeModule(
loaderTree: LoaderTree,
moduleType: 'layout' | 'not-found' | 'forbidden' | 'unauthorized'
moduleType: 'layout' | 'not-found'
) {
const { [moduleType]: module } = loaderTree[2]
if (typeof module !== 'undefined') {
Expand Down

0 comments on commit 875bd7e

Please sign in to comment.