Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
Adds URLSearchParams iterable methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ispivey committed May 15, 2020
1 parent f32c145 commit c1a52d4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,22 @@ interface Headers {
values(): IterableIterator<string>;
}

interface URLSearchParams {
[Symbol.iterator](): IterableIterator<[string, string]>;
/**
* Returns an array of key, value pairs for every entry in the search params.
*/
entries(): IterableIterator<[string, string]>;
/**
* Returns a list of keys in the search params.
*/
keys(): IterableIterator<string>;
/**
* Returns a list of values in the search params.
*/
values(): IterableIterator<string>;
}

interface ContentOptions {
/**
* Controls the way the HTMLRewriter treats inserted content.
Expand Down

0 comments on commit c1a52d4

Please sign in to comment.