Skip to content

Commit 79484d2

Browse files
committed
Update tests and code to satisfy new React APIs and type changes
1 parent a188df1 commit 79484d2

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

packages/next/src/lib/metadata/metadata.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,5 @@ export function createMetadataComponents({
129129
return null
130130
}
131131

132-
// @ts-expect-error async server components
133132
return [MetadataTree, MetadataOutlet]
134133
}

packages/next/src/server/app-render/required-scripts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import ReactDOM from 'react-dom'
55
export function getRequiredScripts(
66
buildManifest: BuildManifest,
77
assetPrefix: string,
8-
crossOrigin: string | undefined,
8+
crossOrigin: undefined | '' | 'anonymous' | 'use-credentials',
99
SRIManifest: undefined | Record<string, string>,
1010
qs: string,
1111
nonce: string | undefined

packages/next/src/server/app-render/walk-tree-with-flight-router-state.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ export async function walkTreeWithFlightRouterState({
135135
? null
136136
: // Create component tree using the slice of the loaderTree
137137

138-
// @ts-expect-error TODO-APP: fix async component type
139138
React.createElement(async () => {
140139
const { Component } = await createComponentTree(
141140
// This ensures flightRouterPath is valid and filters down the tree

packages/react-dev-overlay/src/internal/components/ShadowPortal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ export type ShadowPortalProps = {
66
globalOverlay?: boolean
77
}
88

9-
export const ShadowPortal: React.FC<ShadowPortalProps> = function Portal({
9+
export const ShadowPortal = function Portal({
1010
children,
1111
globalOverlay,
12-
}) {
12+
}: ShadowPortalProps) {
1313
let mountNode = React.useRef<HTMLDivElement | null>(null)
1414
let portalNode = React.useRef<HTMLElement | null>(null)
1515
let shadowNode = React.useRef<ShadowRoot | null>(null)

0 commit comments

Comments
 (0)