mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix types
This commit is contained in:
parent
d341e844fe
commit
d9bb3fa2ee
@ -46,7 +46,7 @@ function dumpMiddleware (middleware: ServerMiddleware[]) {
|
||||
const data = middleware.map(({ route, handle, ...props }) => {
|
||||
return [
|
||||
(route && route !== '/') ? route : '*',
|
||||
relative(process.cwd(), handle),
|
||||
relative(process.cwd(), handle as string),
|
||||
dumpObject(props)
|
||||
]
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user