diff --git a/types/next/document.d.ts b/types/next/document.d.ts index bb0e9ff40f..febd36eb4a 100644 --- a/types/next/document.d.ts +++ b/types/next/document.d.ts @@ -5,7 +5,7 @@ import { DefaultQuery } from "./router"; export interface RenderPageResponse { buildManifest: Record; html?: string; - head?: React.ReactElement[]; + head?: Array>; } export interface PageProps { @@ -37,7 +37,7 @@ export interface NextDocumentContext exte * https://github.com/zeit/next.js/blob/7.0.0/server/document.js#L16 */ export interface DefaultDocumentIProps extends RenderPageResponse { - styles?: React.ReactElement[]; + styles?: Array>; } /** diff --git a/types/next/head.d.ts b/types/next/head.d.ts index aa86aa5e87..d46b371d11 100644 --- a/types/next/head.d.ts +++ b/types/next/head.d.ts @@ -3,6 +3,6 @@ import * as React from "react"; export function defaultHead(): JSX.Element[]; export default class Head extends React.Component { static canUseDOM: boolean; - static peek(): React.ReactElement[]; - static rewind(): React.ReactElement[]; + static peek(): Array>; + static rewind(): Array>; }