mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +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 }) => {
|
const data = middleware.map(({ route, handle, ...props }) => {
|
||||||
return [
|
return [
|
||||||
(route && route !== '/') ? route : '*',
|
(route && route !== '/') ? route : '*',
|
||||||
relative(process.cwd(), handle),
|
relative(process.cwd(), handle as string),
|
||||||
dumpObject(props)
|
dumpObject(props)
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user