Skip to content

Commit

Permalink
Add missing type for FlightCSSManifest
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Aug 15, 2022
1 parent 5c016a7 commit 3a977bf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/next/server/app-render.tsx
Expand Up @@ -37,8 +37,8 @@ const ReactDOMServer = shouldUseReactRoot
export type RenderOptsPartial = {
err?: Error | null
dev?: boolean
serverComponentManifest?: any
serverCSSManifest?: any
serverComponentManifest?: FlightManifest
serverCSSManifest?: FlightCSSManifest
supportsDynamicHTML?: boolean
runtime?: ServerRuntime
serverComponents?: boolean
Expand Down Expand Up @@ -66,6 +66,7 @@ const enum RecordStatus {

type Record = {
status: RecordStatus
// Could hold the existing promise or the resolved Promise
value: any
}

Expand Down Expand Up @@ -603,7 +604,7 @@ export async function renderToHTMLOrFlight(
parentParams: { [key: string]: any }
rootLayoutIncluded?: boolean
firstItem?: boolean
serverStylesheets: { [file: string]: string[] }
serverStylesheets: FlightCSSManifest
// parentSegmentPath: string
}): Promise<{ Component: React.ComponentType }> => {
const Loading = loading ? await interopDefault(loading()) : undefined
Expand Down Expand Up @@ -910,7 +911,7 @@ export async function renderToHTMLOrFlight(
loaderTree: loaderTreeToFilter,
parentParams: currentParams,
firstItem: true,
serverStylesheets: serverCSSManifest,
serverStylesheets: serverCSSManifest || {},
// parentSegmentPath: '',
}
)
Expand Down Expand Up @@ -962,7 +963,7 @@ export async function renderToHTMLOrFlight(
// Get all the server imported styles.
const [mappedServerCSSManifest, initialStylesheets] = getCssInlinedLinkTags(
serverComponentManifest,
serverCSSManifest
serverCSSManifest || {}
)

// Create full component tree from root to leaf.
Expand Down

0 comments on commit 3a977bf

Please sign in to comment.