Skip to content

Commit

Permalink
fix(types): use connect type for server middleware (#227)
Browse files Browse the repository at this point in the history
closes #183
  • Loading branch information
danielroe authored and kevinmarrec committed Dec 2, 2019
1 parent 27ff35f commit 0d50ef2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/types/config/server-middleware.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Documentation: https://nuxtjs.org/api/configuration-servermiddleware
*/

import { RequestHandler } from 'express'
import { NextHandleFunction } from 'connect'

export type ServerMiddleware = RequestHandler
export type ServerMiddleware = NextHandleFunction

export type NuxtConfigurationServerMiddleware = string | { path: string, prefix?: boolean, handler: string | ServerMiddleware } | ServerMiddleware

0 comments on commit 0d50ef2

Please sign in to comment.