Skip to content

Commit

Permalink
fix(types): add type for serverMiddleware object format (#8182)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Oct 10, 2020
1 parent 00c9dc3 commit a748cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/types/config/server-middleware.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit a748cf0

Please sign in to comment.