Skip to content

Commit 58ea490

Browse files
peitschiejanl
authored andcommitted
Correct typescript import recommendations
1 parent f13527e commit 58ea490

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/_guides/setup-pouchdb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ In your `tsconfig.json` activate `allowSyntheticDefaultImports`:
8787
Then in your TypeScript:
8888

8989
```typescript
90-
import * as PouchDB from 'pouchdb';
90+
import PouchDB from 'pouchdb';
9191
```
9292

9393
You can install a plugin (provided there is a [type definition for it in npm](https://www.npmjs.com/search?q=scope:types%20pouchdb)), import it in the same way and then pass the imported name to `PouchDB.plugin()` method just as you would do in JavaScript.

0 commit comments

Comments
 (0)