Skip to content

Commit 64593fb

Browse files
committed
Fixing the missing type issue with the library
1 parent 65aabb6 commit 64593fb

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

package-lock.json

Lines changed: 14 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
},
4343
"dependencies": {
4444
"@azure/functions-extensions-base": "0.2.0",
45-
"cookie": "^0.7.0"
45+
"cookie": "^0.7.0",
46+
"undici-types": "^7.20.0"
4647
},
4748
"devDependencies": {
4849
"@types/chai": "^4.2.22",

src/http/HttpRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export function createStreamRequest(
153153
duplex: 'half',
154154
method: nonNullProp(proxyReq, 'method'),
155155
headers,
156-
});
156+
} as RequestInit);
157157

158158
const params: Record<string, string> = {};
159159
for (const [key, rpcValue] of Object.entries(rpcParams)) {

types/http.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import { Blob } from 'buffer';
55
import { Readable } from 'stream';
66
import { ReadableStream } from 'stream/web';
7+
import { FormData, Headers } from 'undici-types';
78
import { URLSearchParams } from 'url';
89
import { FunctionOptions, FunctionOutput, FunctionResult, FunctionTrigger } from './index';
910
import { InvocationContext } from './InvocationContext';

0 commit comments

Comments
 (0)