Skip to content

Commit

Permalink
Cast types
Browse files Browse the repository at this point in the history
  • Loading branch information
bespoyasov committed Sep 30, 2023
1 parent b7e9148 commit fe71b89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Document, { Html, Head, Main, DocumentContext, NextScript } from 'next/document'
import React from 'react'
import React, { ReactElement } from 'react'
import { ServerStyleSheet } from 'styled-components'

/* eslint-disable @typescript-eslint/no-explicit-any */
Expand All @@ -15,7 +15,7 @@ export default class MyDocument extends Document<IProps> {
try {
ctx.renderPage = () =>
originalRenderPage({
enhanceApp: (App) => (props) => sheet.collectStyles(<App {...props} />)
enhanceApp: (App) => (props) => sheet.collectStyles(<App {...props} />) as ReactElement<any>
})

const initialProps = await Document.getInitialProps(ctx)
Expand Down

1 comment on commit fe71b89

@vercel
Copy link

@vercel vercel bot commented on fe71b89 Sep 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.