Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Create and export the response type. #207

Open
Michael-Liendo opened this issue Jul 7, 2023 · 3 comments
Open

Create and export the response type. #207

Michael-Liendo opened this issue Jul 7, 2023 · 3 comments

Comments

@Michael-Liendo
Copy link

I recommend being able to use the types of the responses to request an image without having to call the method.

@Michael-Liendo
Copy link
Author

If you agree with the implementation of this issue, I could contribute with it. 😄

In my case I use the types of the images and the author and to use it in a place outside of where the request is made I cannot, and I have to create them by myself, that's why the recommendation.

@Magellol
Copy link
Member

Would you mind providing a small code snippet to illustrate your idea? I'm not sure I fully understand.

@Michael-Liendo
Copy link
Author

Michael-Liendo commented Jul 26, 2023

Would you mind providing a small code snippet to illustrate your idea? I'm not sure I fully understand.

It would be just to create the types of the response of an image.

something like this:
image

but more types about the responses, and export for use

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants