8000 `dcv_delegation_records` key does not exist in `CustomHostnameGetResponse.SSL` and `CustomHostnameEditResponse.SSL` · Issue #2677 · cloudflare/cloudflare-typescript · GitHub
[go: up one dir, main page]

Skip to content

dcv_delegation_records key does not exist in CustomHostnameGetResponse.SSL and CustomHostnameEditResponse.SSL #2677

@aperture147

Description

@aperture147

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

At the moment Cloudflare API is responding dcv_delegation_records key in the ssl object, but the SSL object does not have this key. This does not make any error in the compile time or run time, but result an false error report on the TypeScript type check while coding

To Reproduce

  1. Create Cloudflare client: const cf = Cloudflare({ apiToken: c.env.CLOUDFLARE_API_TOKEN })
  2. Create a new hostname (or edit an existing one): const cfData = cf.customHostnames.create({...})
  3. Get the dcv_delegation_records key from the response: cfData.ssl.dcv_delegation_records, this will result an error: Property 'dcv_delegation_records' does not exist on type 'SSL'

Code snippets

OS

any

Runtime version

any

Library version

5.1.0

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

      < 2B63 /div>
      0