mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(types): add type for serverMiddleware
object format (#8182)
This commit is contained in:
parent
00c9dc3fc2
commit
a748cf0ca3
2
packages/types/config/server-middleware.d.ts
vendored
2
packages/types/config/server-middleware.d.ts
vendored
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user