Skip to content

[v2] Reexport TypedHeaders from fetchdts #1308

@tobiasdiez

Description

@tobiasdiez

Describe the feature

Currently TypedServerRequest is exported but not the type of headers, i.e
https://github.com/unjs/fetchdts/blob/9d9bc8c63614a3eb44714c7d94a5dd87d898863d/src/fetch.ts#L3

This makes a bit awkward to write a method that accepts h3's headers.

On a related note, the migration guide says "TypedHeaders: Migrate to RequestHeaders and ResponseHeaders." but the latter types seem to not exist.

Additional information

  • Would you be willing to help implement this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions