dropbox / dropbox/dropbox-sdk-js

TypeScript compiler did not support the import sdk

Open
#217 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
970
Forks
353
Avg merge
9h 3m
Merged PRs (30d)
2

Description

```
import { Dropbox } from 'dropbox';

const dbx = new Dropbox({ accessToken });
dbx.filesSearch({
path: '',
query: filename,
start: nextPageToken,
max_results: pageSize,
mode: 'filename'
})
```

The `mode` type here is `string` which is not assignable to the type definition: `SearchMode`. However, it is unclear how to import the type

`(method) DropboxTypes.Dropbox.filesSearch(arg: DropboxTypes.files.SearchArg): Promise`

![screen shot 2018-09-08 at 23 42 34](https://user-images.githubusercontent.com/22391049/45259305-9aaeb100-b3c1-11e8-8633-bbef7cc187ab.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.