Feedback: Migrations #421
-
FeedbackWe use internal types from version 1, MockedResponse, RestRequest, ResponseTransformer, ResponseComposition and there is no clear upgrade path for using these. Also can't get codemod to work at all. Having typescript examples would also be helpful. I think we have a complex setup but any help would be appreciated thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, @wcwcaseman. Thanks for the feedback! I hope most of your questions will be answered in Using with TypeScript. This goes through custom resolvers, handlers, and other things that require a bit more granular typing. Specifically for your types:
Let me know if you have any concrete examples you'd like help migrating to v2. |
Beta Was this translation helpful? Give feedback.
Hi, @wcwcaseman. Thanks for the feedback!
I hope most of your questions will be answered in Using with TypeScript. This goes through custom resolvers, handlers, and other things that require a bit more granular typing.
Specifically for your types:
MockedResponse
->Response
(global).RestRequest
->HttpRequest
.ResponseTransformer
-> gone, no concept of transforming response anymore.ResponseComposition
-> gone, see the previous point.Let me know if you have any concrete examples you'd like help migrating to v2.