Skip to content

Commit

Permalink
Autogenerate config update
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 24, 2023
1 parent 446ccc5 commit 903bd9e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions client/msw-handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,9 @@ type StatusCode = number;
*/
export function json<B extends DefaultBodyType>(
body: B,
options: { status?: number; delay?: number } = {}
options: { status?: number } = {}
): StrictResponse<B> {
const { status = 200, delay = 0 } = options;
if (delay) {
doDelay(delay);
}
const { status = 200 } = options;
return HttpResponse.json(body, { status });
}

Expand Down

0 comments on commit 903bd9e

Please sign in to comment.