Skip to content

Commit

Permalink
Merge pull request #397 from anzharip/fix--@azure/functions-type-defi…
Browse files Browse the repository at this point in the history
…nition-change

fix: @azure/functions type definition change
  • Loading branch information
anzharip authored Jun 22, 2022
2 parents c308a6a + 62a18b8 commit 0006f90
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"typescript": "^4.2.3"
},
"dependencies": {
"@azure/functions": "^3.0.0",
"@azure/functions": "^3.2.0",
"@types/busboy": "^1.3.0",
"@types/node": "^17.0.0",
"busboy": "^1.6.0"
Expand Down
6 changes: 5 additions & 1 deletion test/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HttpRequest } from "@azure/functions";
import { HttpRequest, Form } from "@azure/functions";
import FormData from "form-data";
import fs from "fs";
import parseMultipartFormData from "../src/index";
Expand All @@ -23,6 +23,10 @@ describe("index.js", () => {
body: body.getBuffer(),
query: {},
params: {},
parseFormBody() {
return {} as Form;
},
user: null,
};
});

Expand Down

0 comments on commit 0006f90

Please # to comment.