Fix tests.

This commit is contained in:
João Vieira
2018-09-25 14:48:16 +01:00
parent 35893a4d37
commit ff11ea68ce
2 changed files with 4 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ import { DefaultQuery } from "./router";
export interface RenderPageResponse {
buildManifest: Record<string, any>;
html?: string;
head?: React.ReactElement<any>[];
head?: Array<React.ReactElement<any>>;
}
export interface PageProps {
@@ -37,7 +37,7 @@ export interface NextDocumentContext<Q extends DefaultQuery = DefaultQuery> exte
* https://github.com/zeit/next.js/blob/7.0.0/server/document.js#L16
*/
export interface DefaultDocumentIProps extends RenderPageResponse {
styles?: React.ReactElement<any>[];
styles?: Array<React.ReactElement<any>>;
}
/**

View File

@@ -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<any>[];
static rewind(): React.ReactElement<any>[];
static peek(): Array<React.ReactElement<any>>;
static rewind(): Array<React.ReactElement<any>>;
}