Skip to content

Commit 16ea293

Browse files
committed
Add signature for formData types (Fetch API)
1 parent 0e72dcb commit 16ea293

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13474,6 +13474,7 @@ interface Body {
1347413474
blob(): Promise<Blob>;
1347513475
json(): Promise<any>;
1347613476
text(): Promise<string>;
13477+
formData(): Promise<FormData>;
1347713478
}
1347813479

1347913480
interface CanvasPathMethods {

baselines/webworker.generated.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,7 @@ interface Body {
11341134
blob(): Promise<Blob>;
11351135
json(): Promise<any>;
11361136
text(): Promise<string>;
1137+
formData(): Promise<FormData>;
11371138
}
11381139

11391140
interface GlobalFetch {

inputfiles/addedTypes.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,5 +1437,11 @@
14371437
"name": "reason?",
14381438
"type": "any"
14391439
}]
1440+
},
1441+
{
1442+
"kind": "method",
1443+
"interface": "Body",
1444+
"name": "formData",
1445+
"signatures": ["formData(): Promise<FormData>"]
14401446
}
14411447
]

0 commit comments

Comments
 (0)