Skip to content

Incorrect return type in documentation of Client#fetchNextPage  #130

@paskausks

Description

@paskausks

Hello everyone!

While writing code which utilizes the js-buy-sdk from Shopify, I noticed that the documented return type for Client#fetchNextPage() is Promise<GraphModel[]>, when in fact it returns an object, where the GraphModel[] is under the key model, as seen in the code.

That also means that the types for the js-buy-sdk are also incorrect (in the types it's also not marked as returning a Promise, but that's not a big of a deal, relatively).

So, the question, I suppose, is whether the documentation is incorrect or the code?

Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions