提交 e995c73b 编写于 作者: A Alexander Kachkaev 提交者: Joe Haddad

[typings] Allow getInitialProps to be sync (#7763)

上级 cc497568
......@@ -13,7 +13,7 @@ export type NextComponentType<
IP = {},
P = {}
> = ComponentType<P> & {
getInitialProps?(context: C): Promise<IP>
getInitialProps?(context: C): IP | Promise<IP>
}
export type DocumentType = NextComponentType<
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册