remix
remix copied to clipboard
Expose the `ResponseStub` type
I would like to use the ResponseStub to be able to extract a function that redirects.
We're still considering some changes to the ResponseStub approach (https://github.com/remix-run/react-router/issues/11707, https://www.youtube.com/watch?v=f5z_axCofW0) so for now I would just duplicate the type locally
export type ResponseStub = {
status: number | undefined;
headers: Headers;
};
This is no longer relevant as the response stub API has been removed