diff --git a/packages/wrapper/src/index.tsx b/packages/wrapper/src/index.tsx index 74258fd..28bd252 100644 --- a/packages/wrapper/src/index.tsx +++ b/packages/wrapper/src/index.tsx @@ -1,4 +1,4 @@ -import App, {AppContext} from 'next/app'; +import App, {AppContext, AppInitialProps} from 'next/app'; import React from 'react'; import {Provider} from 'react-redux'; import {Store} from 'redux'; @@ -259,7 +259,9 @@ export interface WrapperProps { } type GetInitialPageProps
= NextComponentType = typeof App['getInitialProps']; //FIXME P
+
+//FIXME Could be typeof App.getInitialProps & appGetInitialProps (not exported), see https://github.com/kirill-konshin/next-redux-wrapper/issues/412
+type GetInitialAppProps = ({Component, ctx}: AppContext) => Promise ;
export type GetServerSidePropsCallback ;
= (store: S) => GetStaticProps = (store: S) => GetServerSideProps