Generate typings for version 4.0.15
declare module DropboxTypes {
interface DropboxOptions {
// An access token for making authenticated requests.
accessToken?: string;
// The client id for your app. Used to create authentication URL.
clientId?: string;
// Select user is only used by team endpoints. It specifies which user the team access token should be acting as.
selectUser?: string;
// Root path used to access namespaces different from home namespace (team folders etc)
pathRoot?: string;
// Fetch library for making requests.
fetch?: Function
}
'pathRoot' and 'fetch' parameters are in dropbox_types.d.tstemplate but not in dropbox_types.d.ts, need to generate types from templates otherwise newly added parameters aren't usable in typescript
Thanks for the report! I'll ask the team to fix that up.
It is also needs adding to the DropboxTeam class actAsUser function, so that it gets passed to the new instance of the Dropbox class used there.
@michellemv Thanks for the note! I'll ask the team to work on that as well.
Problem solved in this commit: https://github.com/dropbox/dropbox-sdk-js/commit/bb3dca3d2d07044b12f69f3fdfdf981be5d00d8f
need to close this issue. @greg-db @Bohdan-Tereta what you think?
Thanks for pointing that out!
Works for me, fetch and pathRoot params are recognized in typescript now