Skip to content

Commit

Permalink
update types
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Nov 14, 2024
1 parent c1431e8 commit 701a412
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/next/src/lib/metadata/metadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
resolveMetadataItems,
accumulateMetadata,
accumulateViewport,
type MetadataErrorType,
} from './resolve-metadata'
import { MetaFilter } from './generate/meta'
import type {
Expand Down Expand Up @@ -61,7 +62,7 @@ export function createMetadataComponents({
metadataContext: MetadataContext
getDynamicParamFromSegment: GetDynamicParamFromSegment
appUsingSizeAdjustment: boolean
errorType?: 'not-found' | 'redirect'
errorType?: MetadataErrorType | 'redirect'
createServerParamsForMetadata: CreateServerParamsForMetadata
workStore: WorkStore
MetadataBoundary: (props: { children: React.ReactNode }) => React.ReactNode
Expand Down Expand Up @@ -232,7 +233,7 @@ async function getResolvedViewportImpl(
getDynamicParamFromSegment: GetDynamicParamFromSegment,
createServerParamsForMetadata: CreateServerParamsForMetadata,
workStore: WorkStore,
errorType?: 'not-found' | 'redirect'
errorType?: MetadataErrorType | 'redirect'
): Promise<React.ReactNode> {
const errorConvention = errorType === 'redirect' ? undefined : errorType

Expand Down

0 comments on commit 701a412

Please sign in to comment.