next-redux-wrapper icon indicating copy to clipboard operation
next-redux-wrapper copied to clipboard

import { NextPageContext } from 'next' make a mistake definition to next-redux-wrapper

Open hugejile opened this issue 2 years ago • 0 comments

I found in file es6/index.d.ts, at last line added declare module 'next', import { NextPageContext } from 'next' make a mistake definition to next-redux-wrapper instead of next. I have to downgrade to version 7.0.2。

declare module 'next' {
    interface NextPageContext<S extends Store = any> {
        /**
         * Provided by next-redux-wrapper: The redux store
         */
        store: S;
    }
}

hugejile avatar May 11 '22 02:05 hugejile