Skip to content

Commit

Permalink
Fix typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
N2D4 committed Jul 28, 2024
1 parent c8074e5 commit 849668e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function createVerificationCodeHandler<
code: yupString().required(),
// we cast to undefined as a typehack because the types are a bit icky
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
}).concat((verifyOnly ? undefined : options.requestBody) ?? yupObject({})).required(),
}).concat((verifyOnly ? undefined : options.requestBody) as undefined ?? yupObject({})).required(),
}),
response: verifyOnly ? yupObject({
statusCode: yupNumber().oneOf([200]).required(),
Expand Down

0 comments on commit 849668e

Please sign in to comment.