Skip to content

Types looks wrong for client.workers.scripts.versions.get #2652

Open
@vicb

Description

@vicb

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 type are defined here

result.resources.bindings is returned as an array of binding - that is expected.

How the types define bindings as in interface with a result property holding the array.

To Reproduce

Code snippets

console.log(await client.workers.scripts.versions.get(scriptName, versionId, {
    account_id: accountId,
  }).resources.bindings);

OS

macOS

Runtime version

TypeScript

Library version

4.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions