Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Types differ from real data. Again. #222

Open
akopchinskiy opened this issue May 7, 2020 · 3 comments
Open

Types differ from real data. Again. #222

akopchinskiy opened this issue May 7, 2020 · 3 comments

Comments

@akopchinskiy
Copy link

akopchinskiy commented May 7, 2020

Changes type:

// http://docs.couchdb.org/en/latest/api/database/changes.html#get--db-_changes
  interface DatabaseChangesResultItem {
    // List of document’s leaves with single field rev.
    changes: Array<{ rev: string }>;

    // Document ID.
    id: string;

    // Update sequence.
    seq: any;

    // true if the document is deleted.
    deleted: boolean;
  }

Real data:
image

There is a doc property, however it's not in the interface. Also there's no deleted property, despite it's set as required.
Please fix.

Your Environment

  • Version used: 8.2.2
  • Operating System and version (desktop or mobile): Win 10
@navanshu
Copy link

Is there any better alternative from nano realy types are giving me a bad time.

@glynnbird
Copy link
Contributor

glynnbird commented Jun 13, 2021 via email

@navanshu
Copy link

One cannot improve this further without including breaking changes. I am considering making my own lib than using this. Nano is written in JS and that would be a lot of debuggin time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants