File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1- import App , { AppContext } from 'next/app' ;
1+ import App , { AppContext , AppInitialProps } from 'next/app' ;
22import React from 'react' ;
33import { Provider } from 'react-redux' ;
44import { Store } from 'redux' ;
@@ -259,7 +259,9 @@ export interface WrapperProps {
259259}
260260
261261type GetInitialPageProps < P > = NextComponentType < NextPageContext , any , P > [ 'getInitialProps' ] ;
262- type GetInitialAppProps < P > = typeof App [ 'getInitialProps' ] ; //FIXME P
262+
263+ //FIXME Could be typeof App.getInitialProps & appGetInitialProps (not exported), see https://github.com/kirill-konshin/next-redux-wrapper/issues/412
264+ type GetInitialAppProps < P > = ( { Component, ctx} : AppContext ) => Promise < AppInitialProps & { pageProps : P } > ;
263265
264266export type GetStaticPropsCallback < S extends Store , P > = ( store : S ) => GetStaticProps < P > ;
265267export type GetServerSidePropsCallback < S extends Store , P > = ( store : S ) => GetServerSideProps < P > ;
You can’t perform that action at this time.
0 commit comments