dropbox / dropbox-sdk-js

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

Wrong Typings for refresh access token methods #606

Open FloppyNotFound opened 3 years ago

FloppyNotFound commented 3 years ago

Describe the bug The index.d.ts file shows wrong type information for the two following methods:

To Reproduce Compare the types of https://github.com/dropbox/dropbox-sdk-js/blob/main/types/index.d.ts

with the actual return types: https://github.com/dropbox/dropbox-sdk-js/blob/main/src/auth.js

Expected Behavior The typings file index.d.ts should declare the return type of the two mentioned methods to be a Promise.

Actual Behavior The typings file index.d.ts claims that the return type of the two mentioned methods is void.

Screenshots image

Versions

greg-db commented 3 years ago

Thanks! I'll ask the team to fix that up.

abeebola commented 3 years ago

Still waiting for this. Any update?

greg-db commented 3 years ago

No, I don't have an update on this from the team yet. I'll be sure to follow up here once I do.

sakgoyal commented 1 year ago

any updates? its been years

greg-db commented 1 year ago

No, unfortunately I don't have news on this issue.