@stanlemon/types-pouchdb-core
v0.0.1
Published
Alternative Typescript types for use with PouchDB, forked from DefinitelyTyped.
Downloads
12
Readme
Alternative PouchDB Types for TypeScript
If you are using Typescript in your project, the PouchDB types @types/pouchdb
can be problematic because they declare several types in the global namespace that exist in @types/node
. This package is a fork of []@types/pouchdb-core
](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pouchdb-core) that removes the Buffer
type from the global namespace, thus making it usable in modern Typescript projects.
This issue is pretty documented, for example here and here.
I did not create these types, please check out the original package for all the details.
Usage
You can use these alternative types by adding the following to your package.json to override @types/pouchdb-core
where the problem exists.
{
"devDependencies": {
"@types/pouchdb": "^7.0.0"
},
"overrides": {
"@types/pouchdb-core": {
"@stanlemon/types-pouchdb-core": "0.0.1"
}
}
}