File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
packages/next/src/server/lib Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ import {
3838 PHASE_DEVELOPMENT_SERVER ,
3939 PERMANENT_REDIRECT_STATUS ,
4040} from '../../shared/lib/constants'
41+ import type { NextJsHotReloaderInterface } from '../dev/hot-reloader-types'
4142
4243const debug = setupDebug ( 'next:router-server:main' )
4344
@@ -134,11 +135,7 @@ export async function initialize(opts: {
134135 ; ( global as any ) . _nextDevHandlers = {
135136 async ensurePage (
136137 dir : string ,
137- match : Parameters <
138- InstanceType <
139- typeof import ( '../dev/hot-reloader-webpack' ) . default
140- > [ 'ensurePage' ]
141- > [ 0 ]
138+ match : Parameters < NextJsHotReloaderInterface [ 'ensurePage' ] > [ 0 ]
142139 ) {
143140 const curDevInstance = devInstances [ dir ]
144141 // TODO: remove after ensure is pulled out of server
You can’t perform that action at this time.
0 commit comments