Skip to content

Commit

Permalink
fix(setResponseStatus): mark code type as optional (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Mar 15, 2023
1 parent 2594e54 commit 77e66df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function sendNoContent(event: H3Event, code = 204) {

export function setResponseStatus(
event: H3Event,
code: number,
code?: number,
text?: string
): void {
if (code) {
Expand Down

0 comments on commit 77e66df

Please sign in to comment.