fix types

This commit is contained in:
Pooya Parsa 2021-04-20 15:22:07 +02:00
parent d341e844fe
commit d9bb3fa2ee

View File

@ -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)
]
})