Adding topics to getRandom#181
Conversation
|
@moonrise-tk Have you run yarn to update any dependencies? That might solve that issue. |
|
Ah shoot yall are using yarn, not npm. Works now :). I'll finish up the PR. |
|
Done! I didn't add tests because I guess you can't do without the API key, but I tried it, and it seems to be working. Let me know if it looks okay! Also I updated the types for |
|
I'm really confused: when I use the newest release of unsplash-js in my project, the distribution does not include the new topic ids param. When I What's going on? Is there somewhere else I need to update types? |
|
(Also i've tried cleaning my npm cache, uninstalling, reinstalling, everything) |
|
@moonrise-tk I'm sorry, we have a problem with our build tool: #167 I've just published a new version, this should work! https://github.com/unsplash/unsplash-js/releases/tag/v7.0.15 To verify: https://unpkg.com/unsplash-js@7.0.15/dist/index.d.ts |





Overview
Yo. I'm trying to add topicIds support to the
getRandomendpoint. No idea if I'm going about it right. I also keep running into this error (unrelated to the code I wrote) while building:I'm not sure what the issue is after looking at the file referenced.
Todo
Add docs and tests.
If someone can verify I'm doing this the right way, I can add docs and tests and finish up the PR.