Skip to content

Commit

Permalink
Fix MswParameters handlers type (#146)
Browse files Browse the repository at this point in the history
* Fix `MswParameters` handlers type

* Update decorator.ts
  • Loading branch information
jarojasm95 committed May 5, 2024
1 parent 0836adc commit 9e31318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/msw-addon/src/decorator.ts
Expand Up @@ -6,7 +6,7 @@ export type MswParameters = {
msw?:
| RequestHandler[]
| {
handlers: RequestHandler[] | Record<string, RequestHandler>
handlers: RequestHandler[] | Record<string, RequestHandler | RequestHandler[]>
}
}

Expand Down

0 comments on commit 9e31318

Please sign in to comment.