TS Allow Certain Response Bodies
Hello,
I would like to add a type I can use on my applications for checking the type of responses based on a zod validator. I have wrote the following type:
I would like to add a Response with a body of
Unauthorized
and a status of 401 to the type inside the Promise. Is there anyway to do this? Thanks!0 Replies