unsplash/unsplash-js

Create and export the `response` type.

Michael-Liendo opened this issue · 3 comments

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

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.

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

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