This is an automated email from the ASF dual-hosted git repository.

jan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pouchdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 58ea4905a Correct typescript import recommendations
58ea4905a is described below

commit 58ea4905a77895a1819186afafb2d2b3b3f7d396
Author: Philip Peitsch <[email protected]>
AuthorDate: Sat May 17 17:40:24 2025 +1000

    Correct typescript import recommendations
---
 docs/_guides/setup-pouchdb.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/_guides/setup-pouchdb.md b/docs/_guides/setup-pouchdb.md
index 9ff1d914a..938edbab5 100644
--- a/docs/_guides/setup-pouchdb.md
+++ b/docs/_guides/setup-pouchdb.md
@@ -87,7 +87,7 @@ In your `tsconfig.json` activate 
`allowSyntheticDefaultImports`:
 Then in your TypeScript:
 
 ```typescript
-import * as PouchDB from 'pouchdb';
+import PouchDB from 'pouchdb';
 ```
 
 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.

Reply via email to