Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type definitions for browser version of the sdk #776

Open
adityabhaskar opened this issue Aug 18, 2021 · 1 comment
Open

Type definitions for browser version of the sdk #776

adityabhaskar opened this issue Aug 18, 2021 · 1 comment
Labels

Comments

@adityabhaskar
Copy link

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

  • What version of the SDK are you using? Latest
  • What version of the language are you using? ES6+
  • Are you using Javascript or Typescript? Typescript
  • What platform are you using? (if applicable) Chrome

Additional context
None

@rogebrd
Copy link
Contributor

rogebrd commented Aug 19, 2021

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.

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

No branches or pull requests

2 participants