Skip to content

Make definitions work nicely with third-party promise implementations #18

Closed
@fredgalvao

Description

@fredgalvao

This definition file/project (pouchdb.d.ts) should not create it's own definition of a Promise/Thenable, (edit currently defined at these lines) even if said definition is A+ and/or spec compliant, because it makes extending the api invasive if anyone does global.Promise = require('bluebird'); as suggested by the corresponding blog post.

We should expect definitions for it instead, like this one, so that any other definition file that happens to override the standard (like this other one) can be used by editors and IDEs correctly.

I'll try and work on a PR for this, but can't guarantee it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions