Skip to content

Generated client uses header.entries() requiring lib: dom.iterable in tsconfig #2230

Open
@not-my-profile

Description

@not-my-profile

Because of:

header instanceof Headers ? header.entries() : Object.entries(header);

you'll get a type error when attempting to compile a client with

    "lib": ["ES2022", "dom"], // no dom.iterable

TS2339: Property 'entries' does not exist on type 'Headers'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🔥Something isn't workingprioritized 🚚This issue has been prioritized and will be worked on soon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions