Skip to content

Commit

Permalink
Use correct type in the same place
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Jan 26, 2021
1 parent d13ca03 commit 60f2e1b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/next/next-server/server/render.tsx
Expand Up @@ -44,7 +44,11 @@ import {
NextComponentType,
RenderPage,
} from '../lib/utils'
import { tryGetPreviewData, __ApiPreviewProps } from './api-utils'
import {
tryGetPreviewData,
NextApiRequestCookies,
__ApiPreviewProps,
} from './api-utils'
import { denormalizePagePath } from './denormalize-page-path'
import { FontManifest, getFontDefinitionFromManifest } from './font-utils'
import { LoadComponentsReturnType, ManifestItem } from './load-components'
Expand Down Expand Up @@ -797,7 +801,7 @@ export async function renderToHTML(
try {
data = await getServerSideProps({
req: req as IncomingMessage & {
cookies: { [key: string]: string }
cookies: NextApiRequestCookies
},
res,
query,
Expand Down

0 comments on commit 60f2e1b

Please sign in to comment.