fix(types): add type for serverMiddleware object format (#8182)

This commit is contained in:
Daniel Roe 2020-10-10 23:34:37 +01:00 committed by GitHub
parent 00c9dc3fc2
commit a748cf0ca3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,4 +7,4 @@ import { NextHandleFunction } from 'connect'
export type ServerMiddleware = NextHandleFunction
export type NuxtOptionsServerMiddleware = string | { path: string, prefix?: boolean, handler: string | ServerMiddleware } | ServerMiddleware
export type NuxtOptionsServerMiddleware = string | { path: string, prefix?: boolean, handler: string | ServerMiddleware } | ServerMiddleware | Record<string, ServerMiddleware>