Skip to content

Commit 3aae614

Browse files
committed
Fix type error
1 parent db9385b commit 3aae614

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ test/e2e/generated
1515
samples/generated
1616
samples/swagger-codegen-cli-v2.jar
1717
samples/swagger-codegen-cli-v3.jar
18+
openapi.tmp.json

src/templates/core/node/getRequestBody.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function getRequestBody(options: ApiRequestOptions): BodyInit | undefined {
22
if (options.formData) {
3-
return getFormData(options.formData);
3+
return getFormData(options.formData) as BodyInit;
44
}
55
if (options.body) {
66
if (isString(options.body) || isBinary(options.body)) {

0 commit comments

Comments
 (0)