From df37b63ca93f0d54db79d59b1359f811347cba90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20de=20la=20Martini=C3=A8re?= Date: Thu, 8 Nov 2018 17:46:59 +0100 Subject: [PATCH] [@types/next] Fix getInitialProps typings for the _error page (#30051) * Fix getInitialProps typings for the _error page * Optional Promise for _error's getInitialProps --- types/next/error.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/next/error.d.ts b/types/next/error.d.ts index 09d7e31860..8ad2226f07 100644 --- a/types/next/error.d.ts +++ b/types/next/error.d.ts @@ -10,5 +10,5 @@ export interface DefaultErrorIProps { } export default class Error

extends React.Component

{ - static getInitialProps(context: NextContext): DefaultErrorIProps; + static getInitialProps(context: NextContext): Promise | DefaultErrorIProps; }