Skip to content

Commit

Permalink
fix: remove unused parserOptions, fix handlers type (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekmiyani authored Jan 12, 2025
1 parent 7abaf59 commit 372fd85
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/server.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import express from 'express'
import { HttpHandler } from 'msw'
import { RequestHandler } from 'msw'
import { createMiddleware } from './middleware'

type ParserOptions = Parameters<typeof express.raw>[0]

export function createServer(
parserOptions?: ParserOptions,
...handlers: Array<HttpHandler>
...handlers: Array<RequestHandler>
): express.Express {
const app = express()

Expand Down

0 comments on commit 372fd85

Please sign in to comment.