Commit e995c73b authored by Alexander Kachkaev's avatar Alexander Kachkaev Committed by Joe Haddad

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

parent cc497568
...@@ -13,7 +13,7 @@ export type NextComponentType< ...@@ -13,7 +13,7 @@ export type NextComponentType<
IP = {}, IP = {},
P = {} P = {}
> = ComponentType<P> & { > = ComponentType<P> & {
getInitialProps?(context: C): Promise<IP> getInitialProps?(context: C): IP | Promise<IP>
} }
export type DocumentType = NextComponentType< export type DocumentType = NextComponentType<
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment