Skip to content

The return type of pages.projects.list is still wrong #2757

@SukkaW

Description

@SukkaW

Confirm this is a TypeScript library issue and not an underlying Cloudflare API issue

  • This is an issue with the TypeScript library

Describe the bug

The return value of client.pages.projects.list is still PagePromise<Cloudflare.Pages.Projects.DeploymentsSinglePage, Cloudflare.Pages.Projects.Deployment> which is still wrong.

The API should list projects instead of deployments.

This is the same issue as #2489 where @vaishakdinesh claims it has been fixed in the v6 release, but it is not.

To Reproduce

for await (const project of await client.pages.projects.list({
  account_id: cloudflareAccountId
})) {
  // The `project` type is wrong, it should be project not deployment
}

Code snippets

OS

macOS

Runtime version

TypeScript 6.0.3

Library version

v6.1.0

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