dropbox / dropbox-sdk-js

The Official Dropbox API V2 SDK for Javascript
https://www.dropbox.com/developers
MIT License
942 stars 353 forks source link

Type definitions for browser version of the sdk #776

Open adityabhaskar opened 3 years ago

adityabhaskar commented 3 years ago

Before you start Have you checked StackOverflow, previous issues, and Dropbox Developer Forums for help? Yes

What is your question? I'm struggling to find any type definitions for the browser environment version of the sdk. The type definitions available in the repo and on npm appear to be relevant strictly for the node env.

Is it possible to get / generated type definitions files for the browser environment?

Versions

Additional context None

rogebrd commented 3 years ago

Thanks for the question! At this time we don't expose the Typescript definitions in the browser; it seems we hadn't anticipated the use case you have around service workers. We have created a ticket to get working on this but it seems like in the meantime, the solution posted in #683 would be the fastest way to move forward.