Skip to content

Commit 6366719

Browse files
committed
Add missing methods for FormData type
1 parent 9e8b3d9 commit 6366719

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/lib/dom.iterable.d.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@ interface DOMTokenList {
44
[Symbol.iterator](): IterableIterator<string>;
55
}
66

7+
interface FormData {
8+
/**
9+
* Returns an array of key, value pairs for every entry in the list
10+
*/
11+
entries(): IterableIterator<[string, any]>;
12+
/**
13+
* Returns a list of keys in the list
14+
*/
15+
keys(): IterableIterator<string>;
16+
/**
17+
* Returns a list of values in the list
18+
*/
19+
values(): IterableIterator<any>;
20+
21+
[Symbol.iterator](): IterableIterator<any>;
22+
}
23+
724
interface NodeList {
825
/**
926
* Returns an array of key, value pairs for every entry in the list

0 commit comments

Comments
 (0)