mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
[@types/next] Fix getInitialProps typings for the _error page (#30051)
* Fix getInitialProps typings for the _error page * Optional Promise for _error's getInitialProps
This commit is contained in:
committed by
Andy
parent
26d2add0db
commit
df37b63ca9
Vendored
+1
-1
@@ -10,5 +10,5 @@ export interface DefaultErrorIProps {
|
||||
}
|
||||
|
||||
export default class Error<P = {}> extends React.Component<P & DefaultErrorIProps> {
|
||||
static getInitialProps(context: NextContext): DefaultErrorIProps;
|
||||
static getInitialProps(context: NextContext): Promise<DefaultErrorIProps> | DefaultErrorIProps;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user