Skip to content

Commit

Permalink
fix(fetch): improve Headers and Request type-compatibility (#1964)
Browse files Browse the repository at this point in the history
* fix(fetch): improve Headers and Request type-compatibility

* test: fix "request.referrerPolicy" type assertion
  • Loading branch information
kettanaito committed May 1, 2024
1 parent 0dcd59b commit bb77a4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/fetch.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export declare class Headers implements SpecIterable<[string, string]> {
readonly keys: () => SpecIterableIterator<string>
readonly values: () => SpecIterableIterator<string>
readonly entries: () => SpecIterableIterator<[string, string]>
readonly [Symbol.iterator]: () => SpecIterator<[string, string]>
readonly [Symbol.iterator]: () => SpecIterableIterator<[string, string]>
}

export type RequestCache =
Expand Down Expand Up @@ -163,6 +163,7 @@ export declare class Request extends BodyMixin {
readonly method: string
readonly mode: RequestMode
readonly redirect: RequestRedirect
readonly referrer: string
readonly referrerPolicy: ReferrerPolicy
readonly url: string

Expand Down

0 comments on commit bb77a4c

Please sign in to comment.