remix icon indicating copy to clipboard operation
remix copied to clipboard

Expose the `ResponseStub` type

Open IgnisDa opened this issue 1 year ago • 1 comments

I would like to use the ResponseStub to be able to extract a function that redirects.

IgnisDa avatar Jul 04 '24 04:07 IgnisDa

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;
};

brophdawg11 avatar Jul 05 '24 15:07 brophdawg11

This is no longer relevant as the response stub API has been removed

brophdawg11 avatar Aug 09 '24 19:08 brophdawg11